linux-sensor-tray

maintainer Mindsaver · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The npm install in package() is for production dependencies only, uses --omit=dev and --ignore-scripts, and operates on the project's own source from a verified tarball, posing minimal supply-chain risk.

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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npm install in package() is for production dependencies only, uses --omit=dev and --ignore-scripts, and operates on the project's own source from a verified tarball, posing minimal supply-chain risk.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:56 && npm install --omit=dev --omit=optional --no-audit --no-fund --ignore-scripts )

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Mindsaver <Mindsaver@users.noreply.github.com>
2pkgname=linux-sensor-tray
3pkgver=0.3.4
4pkgrel=1
5pkgdesc="Tray-first Electron app for live CPU/GPU/mainboard/storage stats on Linux"
6arch=('x86_64')
7url="https://github.com/Mindsaver/linux-sensor-tray"
8license=('MIT')
9depends=('electron41' 'hicolor-icon-theme')
10makedepends=('npm' 'nodejs>=20' 'asar' 'git')
11optdepends=(
12 'lshw: richer System info enrichment'
13 'polkit: pkexec-based root helpers'
14 'zenpower3-dkms: extra AMD CPU sensors (Vcore, V SoC, per-CCD temps)'
15)
16install="${pkgname}.install"
17source=(
18 "${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
19 "${pkgname}.sh"
20 "${pkgname}.desktop"
21)
22# CI regenerates hashes via updpkgsums for the actual tag at deploy time;
23# local makepkg should run `updpkgsums` first if you change pkgver.
24sha256sums=('74363cda8b40fde57552abb8d9018132b349c9f79350085f3c60ac683e52e4e8'
25 '90267ebd6e338215d5358159ade24aaf9403008d19db1c81553bc5e8d94421d3'
26 '4af4bed1cb787c29e0f5345330f7ba83bbcb97ea5d42dde20f3e77b56522697a')
27
28build() {
29 cd "${srcdir}/${pkgname}-${pkgver}"
30
31 # Use the system Electron at runtime; don't waste bandwidth fetching one for node_modules.
32 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
33 export npm_config_cache="${srcdir}/.npm-cache"
34
35 # CI bumps the JSON to match the tag; do the same so app.getVersion() == pkgver.
36 RELEASE_VERSION="v${pkgver}" node scripts/set-root-version.mjs
37
38 npm ci --no-audit --no-fund
39 npm run build
40}
41
42package() {
43 cd "${srcdir}/${pkgname}-${pkgver}"
44
45 # Stage the runtime tree (out/ + production node_modules + package.json + icon).
46 local stage="${srcdir}/stage"
47 rm -rf "$stage"
48 install -dm755 "$stage"
49 cp -a out package.json "$stage/"
50 install -Dm644 build/icon.png "$stage/icon.png"
51
52 # Production-only deps (no electron, no devDeps), ASAR-friendly.
53 ( cd "$stage" \
54 && export ELECTRON_SKIP_BINARY_DOWNLOAD=1 \
55 && export npm_config_cache="${srcdir}/.npm-cache" \
56 && npm install --omit=dev --omit=optional --no-audit --no-fund --ignore-scripts )
57
58 install -dm755 "${pkgdir}/usr/lib/${pkgname}"
59 asar pack "$stage" "${pkgdir}/usr/lib/${pkgname}/app.asar"
60
61 install -Dm755 "${srcdir}/${pkgname}.sh" \
62 "${pkgdir}/usr/bin/${pkgname}"
63 install -Dm755 "${srcdir}/${pkgname}-${pkgver}/scripts/linux-sensor-tray-setup" \
64 "${pkgdir}/usr/bin/${pkgname}-setup"
65 install -Dm644 "${srcdir}/${pkgname}.desktop" \
66 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
67 install -Dm644 build/icon.png \
68 "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
69 install -Dm644 LICENSE \
70 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
71}
72

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 00:05:41 LOW 2
2026-07-15 00:09:25 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