socket
LOW
maintainer IuseAURBTW
1 votes
scanned 2026-08-24 15:23:42.374088
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
pkgname=socket
2
pkgver=1.1.159
3
pkgrel=1
4
pkgdesc='Command-line interface for socket.dev security analysis, compiled from source'
5
arch=('x86_64' 'aarch64')
6
url='https://github.com/SocketDev/socket-cli'
7
license=('MIT')
8
depends=('nodejs')
9
makedepends=('pnpm')
10
conflicts=(
11
'socket-cli'
12
'socket-cli-bin'
13
'socket-cli-git'
14
'socket-bin'
15
'socket-git'
16
)
17
provides=('socket-cli')
18
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
19
sha256sums=('7b69a112ff0a22f9de122c6dcd05d441bd57837b2938f31777610e297ca3c74c')
20
21
build() {
22
cd "${srcdir}/socket-cli-${pkgver}"
23
24
pnpm install --frozen-lockfile --ignore-scripts
25
pnpm run build
26
pnpm prune --prod --ignore-scripts
27
}
28
29
package() {
30
local node_modules_dir="${pkgdir}/usr/lib/node_modules/socket"
31
32
cd "${srcdir}/socket-cli-${pkgver}"
33
34
install -d "${node_modules_dir}"
35
install -d "${pkgdir}/usr/bin"
36
37
cp -a bin dist external shadow-bin node_modules "${node_modules_dir}/"
38
install -Dm644 package.json "${node_modules_dir}/package.json"
39
install -Dm644 requirements.json "${node_modules_dir}/requirements.json"
40
install -Dm644 translations.json "${node_modules_dir}/translations.json"
41
install -Dm644 CHANGELOG.md "${node_modules_dir}/CHANGELOG.md"
42
install -Dm644 DISCLOSURE "${node_modules_dir}/DISCLOSURE"
43
44
ln -s '/usr/lib/node_modules/socket/bin/cli.js' "${pkgdir}/usr/bin/socket"
45
ln -s '/usr/lib/node_modules/socket/bin/npm-cli.js' "${pkgdir}/usr/bin/socket-npm"
46
ln -s '/usr/lib/node_modules/socket/bin/npx-cli.js' "${pkgdir}/usr/bin/socket-npx"
47
ln -s '/usr/lib/node_modules/socket/bin/pnpm-cli.js' "${pkgdir}/usr/bin/socket-pnpm"
48
ln -s '/usr/lib/node_modules/socket/bin/yarn-cli.js' "${pkgdir}/usr/bin/socket-yarn"
49
}
50
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-24 15:23:42 | Low | 1 |