We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ca176 commit 09a4676Copy full SHA for 09a4676
.github/workflows/snyk-scan.yml
@@ -24,10 +24,6 @@ jobs:
24
with:
25
args: --all-projects --sarif-file-output=snyk.sarif
26
27
- - name: Replace "security-severity" "undefined" for license-related findings
28
- run: |
29
- sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif
30
-
31
- name: Check output file
32
id: out-file
33
run: |
@@ -36,6 +32,11 @@ jobs:
36
echo "::set-output name=exists::false"
37
fi
38
34
35
+ - 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
39
+
40
- name: Upload result to GitHub Code Scanning
41
if: steps.out-file.outputs.exists == 'true'
42
uses: github/codeql-action/upload-sarif@v3
0 commit comments