Skip to content

Commit

Permalink
Chore(snyk): Fix snyk security scan on chaos-operatoro (#403)
Browse files Browse the repository at this point in the history
Signed-off-by: uditgaurav <udit@chaosnative.com>
  • Loading branch information
uditgaurav committed Mar 15, 2022
1 parent 6798c0c commit d344182
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,20 @@ jobs:
run: make unused-package-check

security:
container:
image: litmuschaos/snyk:1.0
volumes:
- /home/runner/work/_actions/:/home/runner/work/_actions/
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- uses: actions/checkout@v2
- uses: snyk/actions/setup@master
- run: snyk auth ${SNYK_TOKEN}
- uses: actions/setup-go@v1
with:
args: --severity-threshold=high
go-version: '1.17'
- name: Snyk monitor
run: snyk test

trivy:
needs: pre-checks
Expand Down

0 comments on commit d344182

Please sign in to comment.