bruno-electron
maintainer bupd
· 4 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npm install in prepare() is part of building the project from its own source; the package installs only built assets from the official GitHub repo, and the undeclared package (node-addon-api) is a common build dependency needed for native Node.js addons, not a malicious external payload.
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 npm install in prepare() is part of building the project from its own source; the package installs only built assets from the official GitHub repo, and the undeclared package (node-addon-api) is a common build dependency needed for native Node.js addons, not a malicious external payload.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
npm/yarn/pnpm install of an undeclared external package
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:55
npm install node-addon-api --cache "${srcdir/npm-cache}"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Dj Isaac <aur at dejay dot dev>
2
# Contributor: Vianney Bouchaud <aur dot vianney at bouchaud dot org>
3
4
pkgname=bruno-electron
5
_pkgname=bruno
6
pkgdesc="Bruno, an opensource API Client for Exploring and Testing APIs using the system provided Electron"
7
pkgver=1.38.1
8
pkgrel=1
9
conflicts=('bruno')
10
provides=('bruno')
11
arch=('x86_64')
12
url="https://www.usebruno.com/"
13
license=('MIT')
14
_electron=electron
15
depends=(
16
"${_electron}>=31.2.0"
17
# "nodejs>=20.9.0"
18
)
19
20
makedepends=(
21
'asar'
22
'nvm' # where did that bring you? back to me.
23
)
24
25
source=(
26
"${_pkgname}-${pkgver}.tar.gz::https://github.com/usebruno/bruno/archive/v${pkgver}.tar.gz"
27
com.usebruno.app.Bruno.desktop
28
)
29
30
sha256sums=('468ab677fdb381b20b1de3a3433c4b36c461f9bc85cd1326fdac8f6900f9e8dc'
31
'7bad0d66e67fdaaf99d1b7b32ba2f119b7d6dba12ecfdb398c39ee3c81bbe051')
32
33
_ensure_local_nvm() {
34
# let's be sure we are starting clean
35
which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
36
export NVM_DIR="${srcdir}/.nvm"
37
38
# The init script returns 3 if version specified
39
# in ./.nvrc is not (yet) installed in $NVM_DIR
40
# but nvm itself still gets loaded ok
41
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
42
}
43
44
prepare() {
45
_ensure_local_nvm
46
47
cd "${_pkgname}-${pkgver}"
48
49
export HUSKY=0
50
51
nvm install
52
npm install --cache "${srcdir/npm-cache}"
53
54
# WHY DO I HAVE TO INSTALL THIS MANUALLY?
55
npm install node-addon-api --cache "${srcdir/npm-cache}"
56
}
57
58
build() {
59
_ensure_local_nvm
60
61
export NODE_ENV=production
62
63
cd "${_pkgname}-${pkgver}"
64
65
# build packages
66
npm run build:graphql-docs
67
npm run build:bruno-query
68
npm run build:bruno-common
69
70
# bundle js sandbox libraries
71
npm run sandbox:bundle-libraries --workspace=packages/bruno-js
72
73
# build app
74
npm run build:web
75
76
electronDist="/usr/lib/${_electron}"
77
electronVer="$(cat ${electronDist}/version)"
78
sed -i -e "s~\"dist:linux\":.*~\"dist:linux\": \"electron-builder --linux --x64 --dir --config electron-builder-config.js -c.electronDist=${electronDist} -c.electronVersion=${electronVer}\",~g" packages/bruno-electron/package.json
79
80
npm run build:electron:linux
81
}
82
83
package() {
84
install -Dm0644 com.usebruno.app.Bruno.desktop -t "${pkgdir}/usr/share/applications/"
85
86
cd "${_pkgname}-${pkgver}"
87
88
install -Dm0755 /dev/null "${pkgdir}/usr/bin/${_pkgname}"
89
cat >> "${pkgdir}/usr/bin/${_pkgname}" <<EOD
90
#! /usr/bin/sh
91
ELECTRON_IS_DEV=0 exec ${_electron} /usr/lib/bruno "\$@"
92
EOD
93
94
install -Dm0644 license.md "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
95
install -d "${pkgdir}/usr/lib/${_pkgname}/"
96
asar e packages/bruno-electron/out/linux-unpacked/resources/app.asar "${pkgdir}/usr/lib/${_pkgname}/"
97
98
for i in 16 24 48 64 128 256 512 1024; do
99
install -Dm644 "packages/bruno-electron/resources/icons/png/${i}x${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/com.usebruno.app.Bruno.png"
100
done
101
}
102
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 |