File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,11 @@ jobs:
3636 --file src/app/Dockerfile src/app
3737
3838 - name : Run Trivy vulnerability scanner
39- uses : aquasecurity/trivy-action@master
40- with :
41- image-ref : " $IMAGE:$IMAGE_VERSION"
42- format : ' template'
43- template : ' @/contrib/sarif.tpl'
44- output : ' trivy-results.sarif'
39+ run : |
40+ curl -L https://github.com/aquasecurity/trivy/releases/download/v0.19.2/trivy_0.19.2_Linux-64bit.tar.gz | tar xvzf - contrib trivy
41+ chmod 755 trivy
42+ mv trivy /usr/local/bin/trivy
43+ trivy image --format template --template "@contrib/sarif.tpl" --output trivy-results.sarif $IMAGE:$IMAGE_VERSION
4544
4645 - name : Upload container results to GitHub Code Scanning
4746 uses : github/codeql-action/upload-sarif@v1
You can’t perform that action at this time.
0 commit comments