File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 2020
2121jobs :
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
You can’t perform that action at this time.
0 commit comments