Skip to content

Commit c0ad7b4

Browse files
authored
Create snyk-test-sarif.yml
1 parent 94c93d7 commit c0ad7b4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/snyk-test-sarif.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Upload package.json SARIF"
2+
# Run workflow each time code is pushed to your repository.
3+
on: push
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: snyk/actions/setup@master
10+
- name: Snyk Test
11+
run: snyk test --sarif-file-output=snyk-sarif1.json
12+
continue-on-error: true
13+
env:
14+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
15+
- name: Upload SARIF file
16+
uses: github/codeql-action/upload-sarif@v1
17+
with:
18+
sarif_file: snyk-sarif1.json

0 commit comments

Comments
 (0)