Skip to content

Commit

Permalink
handle undefined security-severity
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed May 25, 2024
1 parent 28cdba9 commit f48f2da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/snyk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
with:
args: --all-projects --sarif-file-output=snyk.sarif

- name: Handle undefined security-severity
run: |
sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif
- name: Check output file
id: out-file
run: |
Expand All @@ -32,6 +36,6 @@ jobs:
- name: Upload result to GitHub Code Scanning
if: steps.out-file.outputs.exists == 'true'
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif

0 comments on commit f48f2da

Please sign in to comment.