linux-sensor-tray
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
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)
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# Maintainer: Mindsaver <Mindsaver@users.noreply.github.com>
pkgname=linux-sensor-tray
pkgver=0.3.4
pkgrel=1
pkgdesc="Tray-first Electron app for live CPU/GPU/mainboard/storage stats on Linux"
arch=('x86_64')
url="https://github.com/Mindsaver/linux-sensor-tray"
license=('MIT')
depends=('electron41' 'hicolor-icon-theme')
makedepends=('npm' 'nodejs>=20' 'asar' 'git')
optdepends=(
'lshw: richer System info enrichment'
'polkit: pkexec-based root helpers'
'zenpower3-dkms: extra AMD CPU sensors (Vcore, V SoC, per-CCD temps)'
)
install="${pkgname}.install"
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
"${pkgname}.sh"
"${pkgname}.desktop"
)
# CI regenerates hashes via updpkgsums for the actual tag at deploy time;
# local makepkg should run `updpkgsums` first if you change pkgver.
sha256sums=('74363cda8b40fde57552abb8d9018132b349c9f79350085f3c60ac683e52e4e8'
'90267ebd6e338215d5358159ade24aaf9403008d19db1c81553bc5e8d94421d3'
'4af4bed1cb787c29e0f5345330f7ba83bbcb97ea5d42dde20f3e77b56522697a')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Use the system Electron at runtime; don't waste bandwidth fetching one for node_modules.
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
export npm_config_cache="${srcdir}/.npm-cache"
# CI bumps the JSON to match the tag; do the same so app.getVersion() == pkgver.
RELEASE_VERSION="v${pkgver}" node scripts/set-root-version.mjs
npm ci --no-audit --no-fund
npm run build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Stage the runtime tree (out/ + production node_modules + package.json + icon).
local stage="${srcdir}/stage"
rm -rf "$stage"
install -dm755 "$stage"
cp -a out package.json "$stage/"
install -Dm644 build/icon.png "$stage/icon.png"
# Production-only deps (no electron, no devDeps), ASAR-friendly.
( cd "$stage" \
&& export ELECTRON_SKIP_BINARY_DOWNLOAD=1 \
&& export npm_config_cache="${srcdir}/.npm-cache" \
&& npm install --omit=dev --omit=optional --no-audit --no-fund --ignore-scripts )
install -dm755 "${pkgdir}/usr/lib/${pkgname}"
asar pack "$stage" "${pkgdir}/usr/lib/${pkgname}/app.asar"
install -Dm755 "${srcdir}/${pkgname}.sh" \
"${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "${srcdir}/${pkgname}-${pkgver}/scripts/linux-sensor-tray-setup" \
"${pkgdir}/usr/bin/${pkgname}-setup"
install -Dm644 "${srcdir}/${pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 build/icon.png \
"${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
install -Dm644 LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |