File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -66,24 +66,13 @@ jobs:
66
66
uses : aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
67
67
with :
68
68
scan-type : config
69
- format : table
69
+ format : sarif
70
+ output : trivy-results.sarif
70
71
hide-progress : true
71
- ignore-unfixed : true
72
72
severity : ' CRITICAL,HIGH'
73
- output : trivy.txt
74
73
exit-code : ' 1'
75
74
76
- - name : Publish Trivy Output to Summary
77
- if : always()
78
- run : |
79
- if [[ -s trivy.txt ]]; then
80
- {
81
- echo "### Security Output"
82
- echo "<details><summary>Click to expand</summary>"
83
- echo ""
84
- echo '```terraform'
85
- cat trivy.txt
86
- echo '```'
87
- echo "</details>"
88
- } >> $GITHUB_STEP_SUMMARY
89
- fi
75
+ - name : Upload Trivy scan results to GitHub Security tab
76
+ uses : github/codeql-action/upload-sarif@v3
77
+ with :
78
+ sarif_file : trivy-results.sarif
You can’t perform that action at this time.
0 commit comments