File tree Expand file tree Collapse file tree 6 files changed +4814
-1008
lines changed Expand file tree Collapse file tree 6 files changed +4814
-1008
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Testing security scan - using sarif
2
- on : [push]
1
+ name : " snyk code manual test "
2
+ on : [push, pull_request ]
3
3
4
4
jobs :
5
5
build :
13
13
uses : github/codeql-action/upload-sarif@v1
14
14
with :
15
15
sarif_file : sarif.json
16
+ # sarif_file: example111.json
Original file line number Diff line number Diff line change
1
+ name : " snyk code test"
2
+ on : [push, pull_request]
3
+ jobs :
4
+ build :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v2
8
+ - uses : snyk/actions/setup@master
9
+ - name : Snyk Test
10
+ run : snyk code test --org=${{ secrets.SNYK_ORG }} --sarif > snyk-sarif2.json
11
+ continue-on-error : true
12
+ env :
13
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
14
+ - name : Upload SARIF file
15
+ uses : github/codeql-action/upload-sarif@v1
16
+ with :
17
+ sarif_file : snyk-sarif2.json
Original file line number Diff line number Diff line change 1
- name : " Upload package.json SARIF"
2
- # Run workflow each time code is pushed to your repository.
3
- on : push
1
+ name : " snyk test"
2
+ on : [push, pull_request]
4
3
jobs :
5
4
build :
6
5
runs-on : ubuntu-latest
7
6
steps :
8
7
- uses : actions/checkout@v2
9
8
- uses : snyk/actions/setup@master
10
- - name : Snyk Test
9
+ - name : Snyk Test
11
10
run : snyk test --sarif-file-output=snyk-sarif1.json
12
- continue-on-error : true
11
+ continue-on-error : true
13
12
env :
14
- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
13
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
15
14
- name : Upload SARIF file
16
15
uses : github/codeql-action/upload-sarif@v1
17
16
with :
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments