We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0329ae4 commit 62a8b01Copy full SHA for 62a8b01
.github/workflows/snyk.yml
@@ -33,6 +33,7 @@ jobs:
33
- uses: actions/checkout@v4
34
with:
35
ref: ${{ github.event.pull_request.head.sha || github.ref }}
36
+ fetch-depth: 0
37
38
- uses: snyk/actions/python-3.8@cdb760004ba9ea4d525f2e043745dfe85bb9077e # pinned 2023-06-13
39
continue-on-error: true # Make sure the SARIF upload is called
@@ -41,6 +42,9 @@ jobs:
41
42
43
args: --sarif-file-output=snyk.sarif
44
45
+ - name: Validate SARIF file
46
+ run: jq . snyk.sarif || (echo "Invalid SARIF file"; exit 1)
47
+
48
- name: Upload result to GitHub Code Scanning
49
uses: github/codeql-action/upload-sarif@v3
50
0 commit comments