File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,13 @@ jobs:
2828 - name : Checkout code
2929 uses : actions/checkout@v3
3030
31- - name : Build an image from Dockerfile
32- run : |
33- docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
34-
35- - name : Run Trivy vulnerability scanner
36- uses : aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
31+ - name : Run Trivy vulnerability scanner in fs mode
32+ uses : aquasecurity/trivy-action@master
3733 with :
38- image-ref : ' docker.io/my-organization/my-app:${{ github.sha }}'
39- format : ' template'
40- template : ' @/contrib/sarif.tpl'
34+ scan-type : ' fs'
35+ scan-ref : ' .'
4136 output : ' trivy-results.sarif'
42- severity : ' CRITICAL,HIGH '
37+ template : ' @/contrib/sarif.tpl '
4338
4439 - name : Upload Trivy scan results to GitHub Security tab
4540 uses : github/codeql-action/upload-sarif@v2
You can’t perform that action at this time.
0 commit comments