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
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:
1 parent
affd17f068
commit
8d2a00062e
1 file changed
+6
-2
@@ -132,11 +132,15 @@ jobs:
|
||||
snyk:
|
||||
name: Security scan (Snyk)
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: snyk/snyk:node
|
||||
# snyk/snyk:node is amd64-only ("no matching manifest for linux/arm64"),
|
||||
# so install the CLI via npm in the multi-arch node image instead
|
||||
container: node:22-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Snyk CLI
|
||||
run: npm install -g snyk@1 && snyk --version
|
||||
|
||||
- name: Snyk dependency scan
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
|
||||
Reference in new issue
Block a user