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-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 |