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>
3
pkgname=spent-tracker
4
pkgver=0.1.0
5
pkgrel=2
6
pkgdesc="A personal expense tracker desktop app built with Tauri"
7
arch=('x86_64')
8
url="https://github.com/Gxstavo-dev/spent"
9
license=('MIT')
10
options=('!strip')
11
depends=(
12
'webkit2gtk-4.1'
13
'gtk3'
14
'libsoup3'
15
'cairo'
16
'gdk-pixbuf2'
17
'glib2'
18
'pango'
19
'gcc-libs'
20
)
21
makedepends=('cargo' 'bun' 'python')
22
source=("spent-tracker-$pkgver.tar.gz::https://github.com/Gxstavo-dev/spent/archive/v$pkgver.tar.gz")
23
sha256sums=('af249eabc7132d705142bd54b4b2346f2c7bf50707202684d625a9c72eda4253')
24
25
prepare() {
26
cd "$srcdir/spent-tracker-$pkgver"
27
python3 -c "
28
import struct, zlib
29
def 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'')
40
with 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 "
45
import json
46
with open('src-tauri/tauri.conf.json') as f:
47
cfg = json.load(f)
48
cfg['build'].pop('beforeDevCommand', None)
49
cfg['build'].pop('beforeBuildCommand', None)
50
with open('src-tauri/tauri.conf.json', 'w') as f:
51
json.dump(cfg, f, indent=2)
52
"
53
}
54
55
build() {
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
68
package() {
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]
76
Categories=Finance;Utility;
77
Comment=A personal expense tracker
78
Exec=spent
79
StartupWMClass=spent
80
Icon=spent
81
Name=spent
82
Terminal=false
83
Type=Application
84
EOF
85
}
86
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |