File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212permissions :
1313 contents : read
14- security-events : write
1514
1615jobs :
1716 trivy-scan :
@@ -26,30 +25,15 @@ jobs:
2625 with :
2726 scan-type : ' fs'
2827 ignore-unfixed : true
29- format : ' sarif '
30- output : ' trivy-results.sarif '
28+ format : ' table '
29+ exit-code : ' 1 '
3130 severity : ' CRITICAL,HIGH'
3231
33- - name : Upload Trivy scan results to GitHub Security tab
34- uses : github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4
35- if : always()
36- with :
37- sarif_file : ' trivy-results.sarif'
38- category : ' trivy-fs'
39-
4032 - name : Run Trivy vulnerability scanner in IaC mode
4133 uses : aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
4234 with :
4335 scan-type : ' config'
4436 hide-progress : false
45- format : ' sarif'
46- output : ' trivy-config-results.sarif'
37+ format : ' table'
4738 exit-code : ' 1'
4839 severity : ' CRITICAL,HIGH'
49-
50- - name : Upload Trivy IaC scan results to GitHub Security tab
51- uses : github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4
52- if : always()
53- with :
54- sarif_file : ' trivy-config-results.sarif'
55- category : ' trivy-config'
You can’t perform that action at this time.
0 commit comments