salesforce2sql-git
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npm install runs in the build phase on the project's own source with declared dependencies; the added dev plugin is part of the build tooling and not an undeclared external execution risk.
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 runs in the build phase on the project's own source with declared dependencies; the added dev plugin is part of the build tooling and not an undeclared external execution risk.
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:83
NODE_ENV=development npm add -D @electron-forge/plugin-local-electron
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=salesforce2sql-git
3
pkgver=0.12.0.r0.ga7630b9
4
_electronversion=36
5
_nodeversion=22
6
pkgrel=1
7
pkgdesc="Electron app to convert a Salesforce org's schema into a similarly shaped database.(Use system-wide electron)"
8
arch=('any')
9
url="https://github.com/acrosman/Salesforce2Sql"
10
license=('MIT')
11
provides=("${pkgname%-git}=${pkgver%.r*}")
12
conflicts=("${pkgname%-git}")
13
depends=(
14
"electron${_electronversion}"
15
'python'
16
'python-setuptools'
17
'nodejs'
18
)
19
makedepends=(
20
'npm'
21
'nvm'
22
'git'
23
'curl'
24
'gendesk'
25
)
26
options=(
27
'!strip'
28
'!emptydirs'
29
)
30
source=(
31
"${pkgname//-/.}::git+${url}.git"
32
"${pkgname%-git}.sh"
33
)
34
sha256sums=('SKIP'
35
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
36
pkgver() {
37
cd "${srcdir}/${pkgname//-/.}"
38
set -o pipefail
39
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
40
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
41
}
42
_ensure_local_nvm() {
43
local NVM_DIR="${srcdir}/.nvm"
44
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
45
nvm install "${_nodeversion}"
46
nvm use "${_nodeversion}"
47
}
48
prepare() {
49
cd "${srcdir}/${pkgname//-/.}"
50
sed -i -e "
51
s/@electronversion@/${_electronversion}/g
52
s/@appname@/${pkgname%-git}/g
53
s/@runname@/app.asar/g
54
s/@cfgdirname@/${pkgname%-git}/g
55
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
56
" -i "${srcdir}/${pkgname%-git}.sh"
57
_ensure_local_nvm
58
gendesk -q -f -n \
59
--pkgname="${pkgname%-git}" \
60
--pkgdesc="${pkgdesc}" \
61
--categories="Utility" \
62
--name="${_pkgname}" \
63
--exec="${pkgname%-git} %U"
64
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
65
HOME="${srcdir}/.electron-gyp"
66
{
67
echo -e '\n'
68
#echo 'build_from_source=true'
69
echo "cache=${srcdir}/.npm_cache"
70
echo "maxsockets=10"
71
} >> .npmrc
72
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
73
{
74
echo 'registry=https://registry.npmmirror.com'
75
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
76
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
77
} >> .npmrc
78
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
79
fi
80
rm -rf package-lock.json
81
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
82
NODE_ENV=development npm install
83
NODE_ENV=development npm add -D @electron-forge/plugin-local-electron
84
}
85
build() {
86
cd "${srcdir}/${pkgname//-/.}"
87
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
88
local electronDist="/usr/lib/electron${_electronversion}"
89
sed -i "/plugins: \[\],/d" forge.config.*
90
sed -i '/makers: \[/i\
91
plugins: [\
92
{\
93
name: "@electron-forge/plugin-local-electron",\
94
config: {\
95
electronPath: "'"${electronDist}"'",\
96
},\
97
},\
98
],' forge.config.*
99
NODE_ENV=production npm run package
100
}
101
package() {
102
install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
103
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
104
cp -Pr --no-preserve=ownership "${srcdir}/${pkgname//-/.}/out/prod/${pkgname%-git}-linux-"*/resources/app "${pkgdir}/usr/lib/${pkgname%-git}"
105
install -Dm644 "${srcdir}/${pkgname//-/.}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
106
install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
107
}
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 |