fix(ci): run Snyk CLI via npm on arm64 runner
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 35s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Security scan (Snyk) (pull_request) Failing after 35s
PR Check / AI code review (opencode) (pull_request) Successful in 8s

The snyk/snyk:node image is amd64-only and cannot start on an arm64
runner. Install the Snyk CLI through npm (supports linux/arm64) in
the multi-arch node:22-bookworm image instead.
This commit is contained in:
Noel Sabia committed 2026-10-18 15:56:27 +02:00
1 parent affd17f068
commit 8d2a00062e
1 file changed
+6 -2
+6 -2
View File
@@ -132,11 +132,15 @@ jobs:
snyk: snyk:
name: Security scan (Snyk) name: Security scan (Snyk)
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: # snyk/snyk:node is amd64-only ("no matching manifest for linux/arm64"),
image: snyk/snyk:node # so install the CLI via npm in the multi-arch node image instead
container: node:22-bookworm
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Snyk CLI
run: npm install -g snyk@1 && snyk --version
- name: Snyk dependency scan - name: Snyk dependency scan
env: env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}