Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/snyk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
with:
args: --all-projects --sarif-file-output=snyk.sarif

- name: Replace "security-severity" "undefined" for license-related findings
run: |
sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif

- name: Check output file
id: out-file
run: |
Expand All @@ -36,6 +32,11 @@ jobs:
echo "::set-output name=exists::false"
fi

- name: Handle undefined security-severity
if: steps.out-file.outputs.exists == 'true'
run: |
sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif

- name: Upload result to GitHub Code Scanning
if: steps.out-file.outputs.exists == 'true'
uses: github/codeql-action/upload-sarif@v3
Expand Down
Loading