File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 8
8
- master
9
9
jobs :
10
10
trivy :
11
- permissions :
12
- # for github/codeql-action/upload-sarif to upload SARIF results
13
- security-events : write
14
11
runs-on : ubuntu-22.04
15
12
steps :
16
13
- name : Checkout code
17
14
uses : actions/checkout@v4
18
- - name : Run Trivy vulnerability scanner in repo mode
15
+ - name : Run Trivy
19
16
uses : aquasecurity/trivy-action@0.24.0
20
17
with :
21
- scan-type : ' fs '
18
+ format : ' table '
22
19
ignore-unfixed : true
23
- format : ' sarif'
24
- output : ' trivy-results.sarif'
25
- severity : ' CRITICAL,HIGH'
26
- - name : Upload Trivy scan results to GitHub Security tab
27
- uses : github/codeql-action/upload-sarif@v3
28
- with :
29
- sarif_file : ' trivy-results.sarif'
20
+ scan-type : ' fs'
21
+ exit-code : ' 1'
22
+ severity : ' MEDIUM,HIGH,CRITICAL'
23
+
You can’t perform that action at this time.
0 commit comments