palletone-git
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command is used to run 'vite build' and 'electron-builder' during the build phase, which are standard development tools for the project; these are not remote code executions but part of the normal build process for a frontend application, and the sources are from the project's own repository.
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 is used to run 'vite build' and 'electron-builder' during the build phase, which are standard development tools for the project; these are not remote code executions but part of the normal build process for a frontend application, and the sources are from the project's own repository.
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:77
NODE_ENV=production npx vite build
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=palletone-git
3
_pkgname=Palletone
4
pkgver=r101.a852af5
5
_electronversion=28
6
_nodeversion=20
7
pkgrel=1
8
pkgdesc="Desktop color pallete builder and manager for developers and designers.(Use system-wide electron)"
9
arch=('any')
10
url="https://palletone-demo.vercel.app/"
11
_ghurl="https://github.com/KainNhantumbo/palletone-app"
12
license=('Apache-2.0')
13
conflicts=("${pkgname%-git}")
14
provides=("${pkgname%-git}=${pkgver%.r*}")
15
depends=(
16
"electron${_electronversion}"
17
)
18
makedepends=(
19
'npm'
20
'git'
21
'nvm'
22
'gendesk'
23
'curl'
24
)
25
source=(
26
"${pkgname//-/.}::git+${_ghurl}.git"
27
"${pkgname%-git}.sh"
28
)
29
sha256sums=('SKIP'
30
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
31
pkgver() {
32
cd "${srcdir}/${pkgname//-/.}"
33
set -o pipefail
34
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
35
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
36
}
37
_ensure_local_nvm() {
38
local NVM_DIR="${srcdir}/.nvm"
39
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
40
nvm install "${_nodeversion}"
41
nvm use "${_nodeversion}"
42
}
43
prepare() {
44
sed -i -e "
45
s/@electronversion@/${_electronversion}/g
46
s/@appname@/${pkgname%-git}/g
47
s/@runname@/app.asar/g
48
s/@cfgdirname@/${_pkgname}/g
49
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
50
" "${srcdir}/${pkgname%-git}.sh"
51
_ensure_local_nvm
52
gendesk -q -f -n --pkgname="${pkgname%-git}" --pkgdesc="${pkgdesc}" --categories="Utility" --name="${_pkgname}" --exec="${pkgname%-git} %U"
53
cd "${srcdir}/${pkgname//-/.}"
54
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
55
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
56
HOME="${srcdir}/.electron-gyp"
57
{
58
echo -e '\n'
59
#echo 'build_from_source=true'
60
echo "cache=${srcdir}/.npm_cache"
61
} >> .npmrc
62
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
63
{
64
echo 'registry=https://registry.npmmirror.com'
65
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
66
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
67
} >> .npmrc
68
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
69
fi
70
sed -i "s/\/\${version}//g" electron-builder.json
71
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
72
NODE_ENV=development npm install
73
}
74
build() {
75
cd "${srcdir}/${pkgname//-/.}"
76
local electronDist="/usr/lib/electron${_electronversion}"
77
NODE_ENV=production npx vite build
78
NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${electronDist} --config electron-builder.json"
79
}
80
package() {
81
install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
82
install -Dm644 "${srcdir}/${pkgname//-/.}/release/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-git}"
83
_icon_sizes=(192x192 256x256 384x384 512x512)
84
for _icons in "${_icon_sizes[@]}";do
85
install -Dm644 "${srcdir}/${pkgname//-/.}/public/icon-${_icons}.png" \
86
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-git}.png"
87
done
88
install -Dm644 "${srcdir}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
89
install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
90
}
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 |