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