heynote
The npx command runs electron-builder on the locally built project, not a remote package; this is a standard part of the build process for Electron apps and does not execute untrusted remote code.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npx command runs electron-builder on the locally built project, not a remote package; this is a standard part of the build process for Electron apps and does not execute untrusted remote code.
1 higher static finding superseded - not the current verdict (shown for transparency)
remote_code_tool
`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.
-
PKGBUILD:34
npx electron-builder --linux dir -c electron-builder.json5 \
PKGBUILD
1 offending line(s) highlighted# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=heynote
pkgver=2.9.1
pkgrel=1
_electronversion=39
pkgdesc="A dedicated scratchpad for developers"
arch=('x86_64')
url="https://heynote.com"
license=('Commons-Clause-1.0')
depends=("electron${_electronversion}")
makedepends=('npm')
source=("$pkgname-$pkgver.tar.gz::https://github.com/heyman/heynote/archive/refs/tags/v$pkgver.tar.gz"
"$pkgname.desktop"
"$pkgname.sh")
sha256sums=('5da83c84a5c2bd6b19acd789029e99d9bac0afb071e37af598a3869964a05655'
'22eca2d471190a5c59d3bfc9d95333071a7f63711e89c11991b12ebe068197ad'
'01f72b81076197876af162436ce58754ceb35a0f7726f00255bfa55a5936f5ff')
prepare() {
cd "$pkgname-$pkgver"
export npm_config_cache="$srcdir/npm_cache"
npm install
sed -i "s|@ELECTRONVERSION@|${_electronversion}|" "$srcdir/$pkgname.sh"
}
build() {
cd "$pkgname-$pkgver"
export npm_config_cache="$srcdir/npm_cache"
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
electronDist="/usr/lib/electron${_electronversion}"
electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)"
npm run prebuild
npx electron-builder --linux dir -c electron-builder.json5 \
${dist} -c.electronDist=${electronDist} -c.electronVersion=${electronVer}
}
package() {
cd "$pkgname-$pkgver"
install -Dm644 "release/$pkgver/linux-unpacked/resources/app.asar" -t \
"$pkgdir/usr/lib/$pkgname/"
cp -a "release/$pkgver/linux-unpacked/resources/app.asar.unpacked" -t \
"$pkgdir/usr/lib/$pkgname/"
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 resources/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |