File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 7979 platforms : linux/amd64
8080 tags : ghcr.io/${{ github.repository_owner }}/hub-converter:${{ steps.extract_info.outputs.version }}
8181 context : ./converter
82+
83+ - name : Run Trivy vulnerability scanner on converter image
84+ if : steps.extract_info.outputs.project == 'converter'
85+ uses : aquasecurity/trivy-action@0.33.1
86+ with :
87+ image-ref : ghcr.io/${{ github.repository_owner }}/hub-converter:${{ steps.extract_info.outputs.version }}
88+ format : sarif
89+ output : trivy-image-results.sarif
90+ severity : ' CRITICAL,HIGH,MEDIUM'
91+
92+ - name : Upload Trivy image scan results to GitHub Security tab
93+ if : steps.extract_info.outputs.project == 'converter'
94+ uses : github/codeql-action/upload-sarif@v3
95+ with :
96+ sarif_file : trivy-image-results.sarif
97+ category : trivy-converter-image
You can’t perform that action at this time.
0 commit comments