File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9090 -PimageRegistry=${{ needs.build-vars.outputs.registry }}
9191 -PjdkVersion=${{ needs.build-vars.outputs.jvm-version }}
9292 -PimageTag=${{ needs.sha-tag.outputs.tag }}
93+
94+ vulnerability-scan :
95+ name : Scan for vulnerabilities
96+ runs-on : ubuntu-latest
97+ needs :
98+ - integration-test
99+ steps :
100+ - name : Run Trivy vulnerability scanner
101+ uses : aquasecurity/trivy-action@0.20.0
102+ with :
103+ image-ref : ${{ needs.build-vars.outputs.registry }}/${{ github.repository }}:${{ needs.sha-tag.outputs.tag }}
104+ format : table
105+ exit-code : 1
106+ ignore-unfixed : true
107+ vuln-type : os,library
108+ severity : CRITICAL,HIGH
109+
110+ - name : Upload Trivy scan results to GitHub Security tab
111+ uses : github/codeql-action/upload-sarif@v2
112+ if : always()
113+ with :
114+ sarif_file : trivy-results.sarif
You can’t perform that action at this time.
0 commit comments