heynote

maintainer yochananmarqos · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW AI review downgraded a static finding 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)
MEDIUM npx/bunx/deno executes a remote package 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
1# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
2pkgname=heynote
3pkgver=2.9.1
4pkgrel=1
5_electronversion=39
6pkgdesc="A dedicated scratchpad for developers"
7arch=('x86_64')
8url="https://heynote.com"
9license=('Commons-Clause-1.0')
10depends=("electron${_electronversion}")
11makedepends=('npm')
12source=("$pkgname-$pkgver.tar.gz::https://github.com/heyman/heynote/archive/refs/tags/v$pkgver.tar.gz"
13 "$pkgname.desktop"
14 "$pkgname.sh")
15sha256sums=('5da83c84a5c2bd6b19acd789029e99d9bac0afb071e37af598a3869964a05655'
16 '22eca2d471190a5c59d3bfc9d95333071a7f63711e89c11991b12ebe068197ad'
17 '01f72b81076197876af162436ce58754ceb35a0f7726f00255bfa55a5936f5ff')
18
19prepare() {
20 cd "$pkgname-$pkgver"
21 export npm_config_cache="$srcdir/npm_cache"
22 npm install
23
24 sed -i "s|@ELECTRONVERSION@|${_electronversion}|" "$srcdir/$pkgname.sh"
25}
26
27build() {
28 cd "$pkgname-$pkgver"
29 export npm_config_cache="$srcdir/npm_cache"
30 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
31 electronDist="/usr/lib/electron${_electronversion}"
32 electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)"
33 npm run prebuild
34 npx electron-builder --linux dir -c electron-builder.json5 \
35 ${dist} -c.electronDist=${electronDist} -c.electronVersion=${electronVer}
36}
37
38package() {
39 cd "$pkgname-$pkgver"
40 install -Dm644 "release/$pkgver/linux-unpacked/resources/app.asar" -t \
41 "$pkgdir/usr/lib/$pkgname/"
42 cp -a "release/$pkgver/linux-unpacked/resources/app.asar.unpacked" -t \
43 "$pkgdir/usr/lib/$pkgname/"
44 install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
45 install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
46 install -Dm644 resources/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
47 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
48}
49

Changes since previous scan

--- PKGBUILD @ 2026-07-16 00:05
+++ PKGBUILD @ 2026-08-03 00:08
@@ -1,6 +1,6 @@
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=heynote
-pkgver=2.9.0
+pkgver=2.9.1
pkgrel=1
_electronversion=39
pkgdesc="A dedicated scratchpad for developers"
@@ -12,12 +12,15 @@
source=("$pkgname-$pkgver.tar.gz::https://github.com/heyman/heynote/archive/refs/tags/v$pkgver.tar.gz"
"$pkgname.desktop"
"$pkgname.sh")
-sha256sums=('df60250157b027d1b437b6e791dd44b096f540c02cd4032c852db948a744a4ef'
+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"
}
@@ -27,7 +30,6 @@
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
electronDist="/usr/lib/electron${_electronversion}"
electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)"
- npm install
npm run prebuild
npx electron-builder --linux dir -c electron-builder.json5 \
${dist} -c.electronDist=${electronDist} -c.electronVersion=${electronVer}

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 17:52:43 MEDIUM 1
2026-07-16 00:05:41 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion