Skip to content

Commit 76de69d

Browse files
authored
Update snyk-security.yml
Signed-off-by: David Osipov <[email protected]>
1 parent 7ddffd2 commit 76de69d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/snyk-security.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
uses: actions/setup-python@19e4675e06535f6b54e894da5c1f044400bb4996
4848
with:
4949
python-version: '3.12.7'
50+
51+
- name: Create Sarif file's dir
52+
run: mkdir sarif
5053

5154
- name: Install dependencies
5255
run: |
@@ -60,7 +63,7 @@ jobs:
6063
env:
6164
SNYK_TOKEN: ${{ secrets.SNYK_SECRET_TOKEN }}
6265
with:
63-
args: --sarif-file-output=./sarif/snyk-vulnerabilities.sarif
66+
args: --sarif-file-output=/sarif/snyk-vulnerabilities.sarif
6467
command: monitor
6568

6669

@@ -69,12 +72,12 @@ jobs:
6972
continue-on-error: true # To make sure that SARIF upload gets called
7073
env:
7174
SNYK_TOKEN: ${{ secrets.SNYK_SECRET_TOKEN }}
72-
run: snyk test monitor --all-projects --sarif-file-output=./sarif/snyk-SCA.sarif
75+
run: snyk test monitor --all-projects --sarif-file-output=/sarif/snyk-SCA.sarif
7376

7477
# Push the Snyk Code results into GitHub Code Scanning tab
7578
- name: Upload result to GitHub Code Scanning
7679
uses: github/codeql-action/upload-sarif@6349095d19ec30397ffb02a63b7aa4f867deb563
7780
env:
7881
SNYK_TOKEN: ${{ secrets.SNYK_SECRET_TOKEN }}
7982
with:
80-
sarif_file: ./sarif/
83+
sarif_file: /sarif

0 commit comments

Comments
 (0)