Skip to content

Commit ce48795

Browse files
ci: replace security-severity for license-related findings in snyk
1 parent f0ed92d commit ce48795

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/snyk.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
- name: Run Snyk test
5151
run: snyk test --all-projects --sarif-file-output=result.sarif --severity-threshold=medium
5252

53+
- name: Replace security-severity undefined for license-related findings
54+
run: sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif
55+
5356
- name: Upload result to GitHub Code Scanning
5457
uses: github/codeql-action/upload-sarif@v3
5558
if: always()

0 commit comments

Comments
 (0)