gitify-git
Triggered rules
llm_review
The static rules flagged this HIGH, but an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed the full PKGBUILD and judged it LOW (confidence 85%): The PKGBUILD is a legitimate AUR package for the Gitify GitHub notification app. The flagged pattern (npm install -g pnpm) installs pnpm from the official npm registry, which is a well-known, audited package manager. This is sloppy packaging — pnpm should be in makedepends or installed via a proper AUR dependency — but it is not malicious. The rest of the build process is standard: cloning from the official GitHub repo, using nvm to manage Node.js versions, building with electron-builder against the system electron, and packaging the result. No obfuscated payloads, no exfiltration, no attacker-controlled hosts. The only real concern is the undeclared runtime dependency on pnpm fetched at build time, which is a packaging quality issue rather than a security risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
npm_install_external
Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time.
-
PKGBUILD:81
npm install -g pnpm
PKGBUILD
1 offending line(s) highlighted# Maintainer:
# Contributor: Brad Johnson <bradsk88@gmail.com>
: ${_install_path:=usr/share}
: ${_electron_version=}
_pkgname="gitify"
pkgname="$_pkgname-git"
pkgver=6.17.0.r36.g75e2e19
pkgrel=1
pkgdesc="GitHub tray icon and notifications"
url="https://github.com/gitify-app/gitify"
license=('MIT')
arch=("any")
depends=(
"electron${_electron_version:-}"
)
makedepends=(
'git'
'libicns'
'nvm'
)
provides=("$_pkgname")
conflicts=(
"$_pkgname"
'gitify-bin'
)
_pkgsrc="$_pkgname"
source=("git+$url.git${_commit:+#commit=$_commit}")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
icns2png -x "$_pkgsrc/assets/images/app-icon.icns"
mv app-icon_512x512x32.png "$_pkgname.png"
}
_nvm_env() {
# avoid cluttering user home
export HOME="$srcdir/node-home"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export NVM_DIR="$srcdir/node-nvm"
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
export NODE_ENV=production
_nodeversion=$(cat "$_pkgsrc/.nvmrc")
# set up nvm
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
nvm install $_nodeversion
nvm use $_nodeversion
}
build() (
_nvm_env
local _electron_version=$(cat /usr/lib/electron${_electron_version:-}/version)
local _electron_builder_options=(
--linux dir
--publish never
-c.electronDist="/usr/lib/electron${_electron_version%%.*}"
-c.electronVersion="${_electron_version:?}"
)
sed -E -e 's#("electron"): "[^"]+",#\1: "'${_electron_version}'",#' \
-i "$_pkgsrc/package.json"
cd "$_pkgsrc"
npm install -g pnpm
NODE_ENV=development pnpm install --ignore-scripts
pnpm run build
pnpm -c exec "electron-builder ${_electron_builder_options[*]}"
)
package() {
local _electron_version=$(cat /usr/lib/electron${_electron_version:-}/version)
depends=("electron${_electron_version%%.*}")
mkdir -pm755 "$pkgdir/$_install_path/$_pkgname"
cp "$_pkgsrc/dist/linux-unpacked/resources"/* "$pkgdir/$_install_path/$_pkgname/"
install -Dm644 "$_pkgname.png" -t "$pkgdir/$_install_path/pixmaps/"
install -Dm644 "$_pkgsrc/LICENSE" -t "$pkgdir/$_install_path/licenses/$pkgname/"
install -Dm755 /dev/stdin "$pkgdir/$_install_path/applications/$_pkgname.desktop" << END
[Desktop Entry]
Type=Application
Name=${_pkgname^}
Comment=$pkgdesc
Exec=$_pkgname %U
Icon=$_pkgname
Terminal=false
StartupWMClass=${_pkgname^}
Categories=Development;
END
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$_pkgname" << END
#!/usr/bin/env bash
name=$_pkgname
flags_file="\${XDG_CONFIG_HOME:-\$HOME/.config}/\${name}-flags.conf"
lines=()
if [[ -f "\${flags_file}" ]]; then
mapfile -t lines < "\${flags_file}"
fi
flags=()
for line in "\${lines[@]}"; do
if [[ ! "\${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "\${line}" ]]; then
flags+=("\${line}")
fi
done
: \${ELECTRON_IS_DEV:=0}
export ELECTRON_IS_DEV
: \${ELECTRON_FORCE_IS_PACKAGED:=true}
export ELECTRON_FORCE_IS_PACKAGED
exec electron${_electron_version%%.*} "/$_install_path/\${name}/app.asar" "\${flags[@]}" "\$@"
END
}
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 |