File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 25
25
- name : Tag Docker image
26
26
run : docker tag algorithm-exercises-csharp:latest algorithm-exercises-csharp:${{ github.sha }}
27
27
28
+ - name : Run Snyk to check Docker image for vulnerabilities
29
+ # Snyk can be used to break the build when it detects vulnerabilities.
30
+ # In this case we want to upload the issues to GitHub Code Scanning
31
+ continue-on-error : true
32
+ uses : snyk/actions/docker@master
33
+ env :
34
+ # In order to use the Snyk Action you will need to have a Snyk API token.
35
+ # See https://docs.snyk.io/integrations/ci-cd-integrations/github-actions-integration#getting-your-snyk-token
36
+ # or you can sign up for free at https://snyk.io/login
37
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
38
+ with :
39
+ image : algorithm-exercises-go:latest
40
+ args : --file=Dockerfile
41
+ # - name: Upload result to GitHub Code Scanning
42
+ # uses: github/codeql-action/upload-sarif@v2
43
+ # with:
44
+ # sarif_file: snyk.sarif
You can’t perform that action at this time.
0 commit comments