Skip to content

Commit

Permalink
Fix Snyk sarif file
Browse files Browse the repository at this point in the history
This PR fixes the issue with Snyk sarif file. See github/codeql-action#2187 for more details.

Signed-off-by: Pradeep Kumar Prakasam <[email protected]>
  • Loading branch information
pradeepp88 authored May 21, 2024
1 parent dbbcb73 commit 3d331cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
image: aries-cloudagent
args: --file=docker/Dockerfile

# Replace any "null" security severity values with 0. The null value is used in the case
# of license-related findings, which do not do not indicate a security vulnerability.
# See https://github.com/github/codeql-action/issues/2187 for more context.
- name: Post process snyk sarif file
run: |
sed -i 's/"security-severity": "null"/"security-severity": "0"/g' snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down

0 comments on commit 3d331cc

Please sign in to comment.