File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,13 @@ jobs:
28
28
- name : Checkout code
29
29
uses : actions/checkout@v3
30
30
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
37
33
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 : ' .'
41
36
output : ' trivy-results.sarif'
42
- severity : ' CRITICAL,HIGH '
37
+ template : ' @/contrib/sarif.tpl '
43
38
44
39
- name : Upload Trivy scan results to GitHub Security tab
45
40
uses : github/codeql-action/upload-sarif@v2
You can’t perform that action at this time.
0 commit comments