Skip to content

Commit d353bc8

Browse files
authored
fix: update snyk-container-analysis.yml
1 parent a4bbd75 commit d353bc8

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/snyk-container-analysis.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,24 @@ on:
2020

2121
jobs:
2222
snyk:
23-
uses: cpp-linter/.github/.github/workflows/snyk-container.yml@main
24-
secrets: inherit
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
with:
27+
persist-credentials: false
28+
- name: Run Snyk to check Docker image for vulnerabilities
29+
continue-on-error: true
30+
uses: snyk/actions/docker@9adf32b1121593767fc3c057af55b55db032dc04 # v1.0.0
31+
env:
32+
# In order to use the Snyk Action you will need to have a Snyk API token.
33+
# More details in https://github.com/snyk/actions#getting-your-snyk-token
34+
# or you can sign up for free at https://snyk.io/login
35+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
36+
with:
37+
image: xianpengshen/clang-tools:21
38+
args: --severity-threshold=high --file=Dockerfile
39+
40+
- name: Upload result to GitHub Code Scanning
41+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
42+
with:
43+
sarif_file: snyk.sarif

0 commit comments

Comments
 (0)