Skip to content

Commit

Permalink
Testing fix for sarif issue where snyk provides null score for licens…
Browse files Browse the repository at this point in the history
…e related findings github/codeql-action#2187
  • Loading branch information
Seth Bodine committed Jun 4, 2024
1 parent 3de8501 commit c1dc616
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/snyk-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
args: --file=dockerfile
- name: Fix SARIF file # added section
run: jq -c '.runs |= map(select((.results | length) > 0))' <snyk.sarif >onlysnyk.sarif
- name: Replace security-severity undefined for license-related findings
run: sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' onlysnyk.sarif
- name: Output base SARIF file
run: cat snyk.sarif
- name: Output Modified SARIF file
Expand Down

0 comments on commit c1dc616

Please sign in to comment.