mattermost-desktop-git

LOW
maintainer Neferin 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The npx command runs electron-builder locally on the project's own source code, which is a standard part of building the desktop application from its git repository; no untrusted remote code execution occurs.

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 npx command runs electron-builder locally on the project's own source code, which is a standard part of building the desktop application from its git repository; no untrusted remote code execution occurs.

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:60 npx electron-builder --linux tar.gz --x64 --publish=never

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Julian Pollinger <julian@pollinger.dev>
2
3pkgname=mattermost-desktop-git
4_pkgname=mattermost-desktop
5pkgver=5.12.0.c9514850
6pkgrel=1
7pkgdesc="Mattermost Desktop for Linux (git)"
8arch=('x86_64')
9
10url="https://github.com/mattermost/desktop"
11license=('Apache')
12_electron=electron34
13
14makedepends=('jq' 'nodejs' 'npm' 'git' 'asar' 'rpm-tools' 'moreutils')
15depends=($_electron 'libxcrypt-compat' 'alsa-lib' 'gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'libutil-linux' 'libappindicator-gtk3' 'libsecret')
16optdepends=()
17
18conflicts=('mattermost-desktop')
19provides=("${_pkgname}")
20
21source=('git+https://github.com/mattermost/desktop.git#branch=master' ${_pkgname}.desktop ${_pkgname}.sh)
22sha256sums=('SKIP'
23 '29d8bdc503ec71d69efa8b73655a230df00c18667c875a73cb8de31a6d86dd2a'
24 '1c2bf48b6397d04a5a536c5c9f4960db53249c838c380f03f808c612b00ba4c6')
25
26prepare() {
27
28 cd 'desktop'
29
30 sed -e "s/@ELECTRON@/$_electron/" "../$_pkgname.sh" > "$_pkgname.sh"
31
32 local _electronVersion="$(< "/usr/lib/$_electron/version")"
33
34 jq '.linux["target"] = [ "dir" ]' electron-builder.json | sponge electron-builder.json
35
36
37 jq ' .devDependencies["electron"] = $electronVersion |
38 del(.devDependencies["electron-rebuild"]) |
39 .config.target = $electronVersion |
40 .config.runtime = $electronRuntime' \
41 --arg electronRuntime "$_electron" \
42 --arg electronVersion "$_electronVersion" \
43 package.json |
44 sponge package.jsons
45 sed -i -e '/package:/s/tar.gz deb rpm/dir/' package.json
46
47
48 _npmargs="--cache $srcdir/npm-cache --no-audit --no-fund"
49
50 CFLAGS="-Wno-implicit-function-declaration" npm $_npmargs install
51}
52
53build() {
54 cd 'desktop'
55
56 export NODE_ENV=production
57 _npmargs="--cache $srcdir/npm-cache --no-audit --no-fund"
58
59 npm $_npmargs --offline run build-prod
60 npx electron-builder --linux tar.gz --x64 --publish=never
61}
62
63package() {
64 cd 'desktop'
65
66 install -Dm0644 -t "$pkgdir/usr/lib/$_pkgname/" release/linux-unpacked/resources/app.asar
67 cp -a release/linux-unpacked/resources/app.asar.unpacked "$pkgdir/usr/lib/$_pkgname/"
68 install -Dm0644 -t "$pkgdir/usr/share/licenses/$_pkgname/" LICENSE.txt
69 install -Dm0644 src/assets/linux/app_icon.png "$pkgdir/usr/share/icons/$_pkgname.png"
70 install -Dm0755 "$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
71 install -Dm0644 -t "$pkgdir/usr/share/applications/" "$srcdir/$_pkgname.desktop"
72
73}
74
75pkgver() {
76 cd 'desktop'
77 echo -e "$(cat package.json | jq '.version' | sed 's/\"//' | sed 's/.develop.*//').$(git rev-parse --short HEAD)" | sed 's/v//' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
78}
79

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion