From f48f2da4c9aea0807c399eae5824f77029775cbf Mon Sep 17 00:00:00 2001 From: yrizhkov Date: Sat, 25 May 2024 16:43:51 +0300 Subject: [PATCH] handle undefined security-severity --- .github/workflows/snyk-scan.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snyk-scan.yml b/.github/workflows/snyk-scan.yml index e3e88d3..10d501a 100644 --- a/.github/workflows/snyk-scan.yml +++ b/.github/workflows/snyk-scan.yml @@ -22,6 +22,10 @@ jobs: with: args: --all-projects --sarif-file-output=snyk.sarif + - name: Handle undefined security-severity + run: | + sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif + - name: Check output file id: out-file run: | @@ -32,6 +36,6 @@ jobs: - name: Upload result to GitHub Code Scanning if: steps.out-file.outputs.exists == 'true' - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: snyk.sarif \ No newline at end of file