Skip to content

Commit

Permalink
Gatekeeping on HIGH vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormachin committed Sep 19, 2023
1 parent 7546cb8 commit 0a689d1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/snyk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- name: Snyk Python report vulnerabilities
uses: snyk/actions/python@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
Expand All @@ -34,8 +35,17 @@ jobs:
--severity-threshold=high # Forces fail on high-severity vulnerabilities

# Push the Snyk Code results into GitHub Code Scanning tab
- name: Upload python scan result to GitHub Code Scanning
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: snyk.sarif

- name: Snyk Python gatekeeper
uses: snyk/actions/python@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args:
--sarif-file-output=snyk.sarif
--policy-path=.snyk
--severity-threshold=high # Forces fail on high-severity vulnerabilities

0 comments on commit 0a689d1

Please sign in to comment.