rancher-desktop
maintainer dgiebert
· 10 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The flagged 'undeclared external package' install via yarn is part of the standard build process for the project's own source code from the official GitHub repository, not an unauthorized or hidden dependency injection.
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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The flagged 'undeclared external package' install via yarn is part of the standard build process for the project's own source code from the official GitHub repository, not an unauthorized or hidden dependency injection.
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:52
npm install --global yarn
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Dominic Giebert <dominic.giebert@gmail.com>
2
# Contributor: Parker Johansen <johansen.parker@gmail.com>
3
4
pkgname=rancher-desktop
5
pkgdesc='Rancher Desktop is an open-source project to bring Kubernetes and container management to the desktop'
6
pkgver=1.24.0
7
pkgrel=1
8
arch=('x86_64')
9
license=('Apache')
10
url='https://rancherdesktop.io/'
11
makedepends=('npm' 'nvm' 'nodejs' 'imagemagick' 'go')
12
provides=('rancher-desktop' 'docker' 'helm' 'kubectl' 'nerdctl' 'limactl')
13
depends=('qemu')
14
source=("https://github.com/rancher-sandbox/rancher-desktop/archive/refs/tags/v${pkgver}.tar.gz")
15
sha256sums=('300b80a958cff00515229b5de58724fb63523f06c335f949139befd1fd7317f4')
16
options=(!debug)
17
18
# https://wiki.archlinux.org/title/Node.js_package_guidelines#Using_nvm
19
_ensure_local_nvm() {
20
which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
21
export NVM_DIR="${srcdir}/.nvm"
22
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
23
}
24
25
prepare() {
26
_ensure_local_nvm
27
nvm install 22
28
29
yarn set version stable
30
31
cd "${pkgname}-${pkgver}"
32
sed -i "s|childProcess.execFileSync('git', \['describe', '--tags'\]).toString().trim()|'v${pkgver}'|g" scripts/package.ts
33
34
}
35
36
build() {
37
_ensure_local_nvm
38
cd "${pkgname}-${pkgver}"
39
# Generate icons
40
icon="resources/icons/logo-square-512.png"
41
for size in 512x512 256x256 128x128 96x96 64x64 48x48 32x32 24x24 16x16; do
42
mkdir "share/icons/hicolor/${size}/apps" -p
43
magick "${icon}" -resize "${size}" "share/icons/hicolor/${size}/apps/${pkgname}.png"
44
done
45
46
sed -i "s|target: \[ zip \]|target: [ dir ]|g" packaging/electron-builder.yml
47
48
# Remove Flatpak and appimage as they are not needed
49
rm packaging/linux/appimage.yml
50
rm packaging/linux/flatpak.yaml
51
# https://github.com/rancher-sandbox/rancher-desktop#how-to-run
52
npm install --global yarn
53
yarn
54
yarn build
55
yarn package --publish=never
56
}
57
58
package() {
59
cd "${pkgname%-bin}-$pkgver"
60
61
# Copy over the data
62
install -d "$pkgdir/opt/${pkgname}"
63
install -d "$pkgdir/usr/share/icons/hicolor/"
64
cp -r dist/linux-unpacked/* "$pkgdir/opt/${pkgname}/"
65
cp -r share/icons/hicolor/* "$pkgdir/usr/share/icons/hicolor/"
66
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
67
68
# Some weird fix
69
# Add integration for desktop env
70
install -Dm644 dist/linux-unpacked/resources/resources/linux/rancher-desktop.desktop -t "$pkgdir/usr/share/applications"
71
install -Dm644 dist/linux-unpacked/resources/resources/linux/rancher-desktop.appdata.xml -t "$pkgdir/usr/share/metainfo"
72
73
# Creating the symlink for better usage
74
install -d "$pkgdir"/usr/bin/
75
ln -sf /opt/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
76
}
77
Changes since previous scan
--- PKGBUILD @ 2026-07-30 00:17+++ PKGBUILD @ 2026-08-03 00:08@@ -3,7 +3,7 @@ pkgname=rancher-desktop pkgdesc='Rancher Desktop is an open-source project to bring Kubernetes and container management to the desktop'-pkgver=1.23.1+pkgver=1.24.0 pkgrel=1 arch=('x86_64') license=('Apache')@@ -12,7 +12,7 @@ provides=('rancher-desktop' 'docker' 'helm' 'kubectl' 'nerdctl' 'limactl') depends=('qemu') source=("https://github.com/rancher-sandbox/rancher-desktop/archive/refs/tags/v${pkgver}.tar.gz")-sha256sums=('f374c6a358f89b99c6294c044829b1aed93844bc9f37abfb764b432f6328d9e4')+sha256sums=('300b80a958cff00515229b5de58724fb63523f06c335f949139befd1fd7317f4') options=(!debug) # https://wiki.archlinux.org/title/Node.js_package_guidelines#Using_nvmScan 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 11:14:12 | MEDIUM | 1 |
| 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 |