spent-tracker

maintainer Gxstavo · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

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 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)
MEDIUM npx/bunx/deno executes a remote package 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
1# Maintainer: Gxstavo <gps5821s@outlook.com>
2# Contributor: Gxstavo <gps5821s@outlook.com>
3pkgname=spent-tracker
4pkgver=0.1.0
5pkgrel=2
6pkgdesc="A personal expense tracker desktop app built with Tauri"
7arch=('x86_64')
8url="https://github.com/Gxstavo-dev/spent"
9license=('MIT')
10options=('!strip')
11depends=(
12 'webkit2gtk-4.1'
13 'gtk3'
14 'libsoup3'
15 'cairo'
16 'gdk-pixbuf2'
17 'glib2'
18 'pango'
19 'gcc-libs'
20)
21makedepends=('cargo' 'bun' 'python')
22source=("spent-tracker-$pkgver.tar.gz::https://github.com/Gxstavo-dev/spent/archive/v$pkgver.tar.gz")
23sha256sums=('af249eabc7132d705142bd54b4b2346f2c7bf50707202684d625a9c72eda4253')
24
25prepare() {
26 cd "$srcdir/spent-tracker-$pkgver"
27 python3 -c "
28import struct, zlib
29def create_png(w, h):
30 raw = b''
31 for y in range(h):
32 raw += b'\x00'
33 for x in range(w):
34 raw += struct.pack('BBBB', 50, 120, 200, 255)
35 compressed = zlib.compress(raw)
36 def chunk(t, d):
37 return struct.pack('>I', len(d)) + t + d + struct.pack('>I', zlib.crc32(t + d) & 0xffffffff)
38 ihdr = struct.pack('>IIBBBBB', w, h, 8, 6, 0, 0, 0)
39 return b'\x89PNG\r\n\x1a\n' + chunk(b'IHDR', ihdr) + chunk(b'IDAT', compressed) + chunk(b'IEND', b'')
40with open('src-tauri/icon.png', 'wb') as f:
41 f.write(create_png(256, 256))
42"
43 # Remove beforeBuildCommand to prevent tauri from re-compiling the server
44 python3 -c "
45import json
46with open('src-tauri/tauri.conf.json') as f:
47 cfg = json.load(f)
48cfg['build'].pop('beforeDevCommand', None)
49cfg['build'].pop('beforeBuildCommand', None)
50with open('src-tauri/tauri.conf.json', 'w') as f:
51 json.dump(cfg, f, indent=2)
52"
53}
54
55build() {
56 cd "$srcdir/spent-tracker-$pkgver"
57 bun install
58 # Compile the express server
59 bun build --compile --target=bun-linux-x64 ./express/src/index.ts --outfile ./express/servidor 2>&1 | tail -2
60 mkdir -p src-tauri/target/release
61 cp express/servidor src-tauri/target/release/servidor
62 # Build frontend
63 bun run build
64 # Build Tauri app (won't recompile server since we removed beforeBuildCommand)
65 bunx tauri build --bundles deb,rpm 2>&1 | tail -5
66}
67
68package() {
69 cd "$srcdir/spent-tracker-$pkgver/src-tauri/target/release"
70 install -Dm755 "spent" "$pkgdir/usr/bin/spent"
71 install -Dm755 "servidor" "$pkgdir/usr/bin/servidor"
72 install -Dm644 "$srcdir/spent-tracker-$pkgver/src-tauri/icon.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/spent.png"
73
74 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/spent.desktop" <<EOF
75[Desktop Entry]
76Categories=Finance;Utility;
77Comment=A personal expense tracker
78Exec=spent
79StartupWMClass=spent
80Icon=spent
81Name=spent
82Terminal=false
83Type=Application
84EOF
85}
86

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