Skip to content

Commit 870e3d8

Browse files
committed
Try to authenticate a different way.
1 parent 21e9c51 commit 870e3d8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/snyk-security.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ jobs:
4747
# with:
4848
# node-version: 16
4949

50-
env:
50+
# env:
5151
# 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 }}
5357

5458
# Runs Snyk Code (SAST) analysis and uploads result into GitHub.
5559
# Use || true to not fail the pipeline
5660
- 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
5862

5963
# Runs Snyk Open Source (SCA) analysis and uploads result to Snyk.
6064
- name: Snyk Open Source monitor

0 commit comments

Comments
 (0)