Skip to content

Commit 62a8b01

Browse files
Fix Snyk Ref issue
1 parent 0329ae4 commit 62a8b01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/snyk.yml

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha || github.ref }}
36+
fetch-depth: 0
3637

3738
- uses: snyk/actions/python-3.8@cdb760004ba9ea4d525f2e043745dfe85bb9077e # pinned 2023-06-13
3839
continue-on-error: true # Make sure the SARIF upload is called
@@ -41,6 +42,9 @@ jobs:
4142
with:
4243
args: --sarif-file-output=snyk.sarif
4344

45+
- name: Validate SARIF file
46+
run: jq . snyk.sarif || (echo "Invalid SARIF file"; exit 1)
47+
4448
- name: Upload result to GitHub Code Scanning
4549
uses: github/codeql-action/upload-sarif@v3
4650
with:

0 commit comments

Comments
 (0)