mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-06-03 21:11:16 +00:00
chore(ci): replace pnpm audit with Trivy setup and filesystem scan for vulnerability assessment
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Install Trivy .deb for CI (same package as scan / docker workflows).
|
||||
set -eu
|
||||
|
||||
curl -fsSL -o /tmp/trivy.deb https://git.quad4.io/Quad4-Software/Trivy-Assets/raw/commit/fdfe96b77d2f7b7f5a90cea00af5024c9f728f17/trivy_0.69.3_Linux-64bit.deb
|
||||
sh scripts/ci/exec-priv.sh dpkg -i /tmp/trivy.deb || sh scripts/ci/exec-priv.sh apt-get install -f -y
|
||||
trivy --version
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Filesystem vulnerability scan for Node (lockfiles, manifests). Replaces pnpm audit
|
||||
# while the npm registry legacy audit endpoints are unavailable to pnpm (HTTP 410).
|
||||
set -eu
|
||||
|
||||
exec trivy fs --exit-code 1 --severity HIGH,CRITICAL --skip-dirs .pnpm-store .
|
||||
Reference in New Issue
Block a user