Skip to content

Commit

Permalink
ci: replace security-severity for license-related findings in snyk
Browse files Browse the repository at this point in the history
  • Loading branch information
paweldomaradzki-dt committed Feb 28, 2025
1 parent f0ed92d commit ce48795
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
- name: Run Snyk test
run: snyk test --all-projects --sarif-file-output=result.sarif --severity-threshold=medium

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

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
if: always()
Expand Down

0 comments on commit ce48795

Please sign in to comment.