dcli-git

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

The use of 'yarn dlx' to run @yao-pkg/pkg is part of the build process to create a self-contained binary from the project's own source; it runs a known packaging tool on locally built code, not arbitrary remote code.

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 use of 'yarn dlx' to run @yao-pkg/pkg is part of the build process to create a self-contained binary from the project's own source; it runs a known packaging tool on locally built code, not arbitrary remote code.

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:66 yarn dlx @yao-pkg/pkg@6.1.1 ./dist -t node22-linux-x64 -o bundle/dcli-linux-x64 -C Brotli "--public" "--public-packages" "tslib,thirty-two,node-hkdf-sync,vows" "--no-bytecode"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Lukas Westholt <support(at)lukaswestholt(dot)de>
2
3pkgname=dcli-git
4pkgver=6.2544.2.r3.8d37e32
5pkgrel=1
6pkgdesc="Dashlane CLI - Access your secrets in your terminal, servers and CI/CD"
7url="https://github.com/Dashlane/dashlane-cli"
8arch=("x86_64")
9license=('Apache-2.0')
10depends=('glibc' 'gcc-libs')
11makedepends=('nvm' 'yarn' 'git')
12checkdepends=()
13optdepends=()
14provides=("${pkgname%-*}=$pkgver")
15conflicts=("${pkgname%-*}")
16conflicts=()
17replaces=()
18backup=()
19options=('!strip')
20install=
21changelog=
22source=("${pkgname%-*}::git+${url}.git")
23noextract=()
24sha256sums=('SKIP')
25
26# See https://wiki.archlinux.org/title/Node.js_package_guidelines#Using_nvm
27_ensure_local_nvm() {
28 # Let's be sure we are starting clean
29 which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
30 export NVM_DIR="${srcdir}/.nvm"
31
32 # The init script returns 3 if version specified
33 # in ./.nvmrc is not (yet) installed in $NVM_DIR
34 # but nvm itself still gets loaded ok
35 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
36}
37
38pkgver() {
39 cd "${srcdir}/${pkgname%-*}"
40 printf "%s" "$(git describe --tags --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
41}
42
43prepare() {
44 cd "${srcdir}/${pkgname%-*}"
45
46 # contain global packages somewhere else
47 yarn config set globalFolder "${srcdir}/.yarn"
48}
49
50build() {
51 # We don't want to depend on nodejs-lts-jod on runtime
52 # So we build the dcli as a self-contained binary
53 # See: https://github.com/Dashlane/dashlane-cli/issues/52#issuecomment-1447918815
54
55 cd "${srcdir}/${pkgname%-*}"
56
57 # Ensure correct NodeJS version for building
58 _ensure_local_nvm
59 nvm install 22
60
61 # See https://github.com/Dashlane/dashlane-cli/blob/8d37e32ebba9e95404f25236b659db692d1bdb4d/.github/workflows/release.yml
62 export CI=true
63 yarn install
64 YARN_ENABLE_INLINE_BUILDS=1 yarn run build
65 yarn workspaces focus --all --production
66 yarn dlx @yao-pkg/pkg@6.1.1 ./dist -t node22-linux-x64 -o bundle/dcli-linux-x64 -C Brotli "--public" "--public-packages" "tslib,thirty-two,node-hkdf-sync,vows" "--no-bytecode"
67}
68
69check() {
70 cd "$srcdir/${pkgname%-*}"
71 chmod +x bundle/dcli-linux-x64
72
73 # Basic smoke test
74 bundle/dcli-linux-x64 --help >/dev/null
75}
76
77
78package() {
79 cd "${srcdir}/${pkgname%-*}"
80 install -Dm755 bundle/dcli-linux-x64 "${pkgdir}/usr/bin/${pkgname%-*}"
81}
82
83

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