File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,18 @@ jobs:
47
47
# with:
48
48
# node-version: 16
49
49
50
- env :
50
+ # env:
51
51
# This is where you will need to introduce the Snyk API token created with your Snyk account
52
- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
52
+ # SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
53
+
54
+ # Authenticate so you can test
55
+ # - name: Snyk Authentication
56
+ # run: snyk auth ${{ secrets.SNYK_TOKEN }}
53
57
54
58
# Runs Snyk Code (SAST) analysis and uploads result into GitHub.
55
59
# Use || true to not fail the pipeline
56
60
- name : Snyk Code test
57
- run : snyk code test -d --org=f9c086cb-5850-4478-89a6-cf9bf67ef496 --sarif > snyk-code.sarif # || true
61
+ run : SNYK_TOKEN=${{ secrets.SNYK_TOKEN }} snyk code test -d --org=f9c086cb-5850-4478-89a6-cf9bf67ef496 --sarif > snyk-code.sarif # || true
58
62
59
63
# Runs Snyk Open Source (SCA) analysis and uploads result to Snyk.
60
64
- name : Snyk Open Source monitor
You can’t perform that action at this time.
0 commit comments