dcli-git

maintainer LukasWestholt · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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

Report a package

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

0 / 4000
Your suggestion