Skip to content

Commit d344182

Browse files
authored
Chore(snyk): Fix snyk security scan on chaos-operatoro (#403)
Signed-off-by: uditgaurav <[email protected]>
1 parent 6798c0c commit d344182

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,20 @@ jobs:
2828
run: make unused-package-check
2929

3030
security:
31+
container:
32+
image: litmuschaos/snyk:1.0
33+
volumes:
34+
- /home/runner/work/_actions/:/home/runner/work/_actions/
3135
runs-on: ubuntu-latest
3236
steps:
33-
- uses: actions/checkout@master
34-
- name: Run Snyk to check for vulnerabilities
35-
uses: snyk/actions/golang@master
36-
env:
37-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
37+
- uses: actions/checkout@v2
38+
- uses: snyk/actions/setup@master
39+
- run: snyk auth ${SNYK_TOKEN}
40+
- uses: actions/setup-go@v1
3841
with:
39-
args: --severity-threshold=high
42+
go-version: '1.17'
43+
- name: Snyk monitor
44+
run: snyk test
4045

4146
trivy:
4247
needs: pre-checks

0 commit comments

Comments
 (0)