spent-tracker
The use of 'bunx tauri build' executes a local development tool during build; the source is from a verifiable GitHub repository, and no untrusted remote code is downloaded or executed.
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 use of 'bunx tauri build' executes a local development tool during build; the source is from a verifiable GitHub repository, and no untrusted remote code is downloaded or executed.
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:65
bunx tauri build --bundles deb,rpm 2>&1 | tail -5
PKGBUILD
1 offending line(s) highlighted# Maintainer: Gxstavo <gps5821s@outlook.com>
# Contributor: Gxstavo <gps5821s@outlook.com>
pkgname=spent-tracker
pkgver=0.1.0
pkgrel=2
pkgdesc="A personal expense tracker desktop app built with Tauri"
arch=('x86_64')
url="https://github.com/Gxstavo-dev/spent"
license=('MIT')
options=('!strip')
depends=(
'webkit2gtk-4.1'
'gtk3'
'libsoup3'
'cairo'
'gdk-pixbuf2'
'glib2'
'pango'
'gcc-libs'
)
makedepends=('cargo' 'bun' 'python')
source=("spent-tracker-$pkgver.tar.gz::https://github.com/Gxstavo-dev/spent/archive/v$pkgver.tar.gz")
sha256sums=('af249eabc7132d705142bd54b4b2346f2c7bf50707202684d625a9c72eda4253')
prepare() {
cd "$srcdir/spent-tracker-$pkgver"
python3 -c "
import struct, zlib
def create_png(w, h):
raw = b''
for y in range(h):
raw += b'\x00'
for x in range(w):
raw += struct.pack('BBBB', 50, 120, 200, 255)
compressed = zlib.compress(raw)
def chunk(t, d):
return struct.pack('>I', len(d)) + t + d + struct.pack('>I', zlib.crc32(t + d) & 0xffffffff)
ihdr = struct.pack('>IIBBBBB', w, h, 8, 6, 0, 0, 0)
return b'\x89PNG\r\n\x1a\n' + chunk(b'IHDR', ihdr) + chunk(b'IDAT', compressed) + chunk(b'IEND', b'')
with open('src-tauri/icon.png', 'wb') as f:
f.write(create_png(256, 256))
"
# Remove beforeBuildCommand to prevent tauri from re-compiling the server
python3 -c "
import json
with open('src-tauri/tauri.conf.json') as f:
cfg = json.load(f)
cfg['build'].pop('beforeDevCommand', None)
cfg['build'].pop('beforeBuildCommand', None)
with open('src-tauri/tauri.conf.json', 'w') as f:
json.dump(cfg, f, indent=2)
"
}
build() {
cd "$srcdir/spent-tracker-$pkgver"
bun install
# Compile the express server
bun build --compile --target=bun-linux-x64 ./express/src/index.ts --outfile ./express/servidor 2>&1 | tail -2
mkdir -p src-tauri/target/release
cp express/servidor src-tauri/target/release/servidor
# Build frontend
bun run build
# Build Tauri app (won't recompile server since we removed beforeBuildCommand)
bunx tauri build --bundles deb,rpm 2>&1 | tail -5
}
package() {
cd "$srcdir/spent-tracker-$pkgver/src-tauri/target/release"
install -Dm755 "spent" "$pkgdir/usr/bin/spent"
install -Dm755 "servidor" "$pkgdir/usr/bin/servidor"
install -Dm644 "$srcdir/spent-tracker-$pkgver/src-tauri/icon.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/spent.png"
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/spent.desktop" <<EOF
[Desktop Entry]
Categories=Finance;Utility;
Comment=A personal expense tracker
Exec=spent
StartupWMClass=spent
Icon=spent
Name=spent
Terminal=false
Type=Application
EOF
}
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 |