File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 build :
2222 runs-on : ubuntu-latest
2323 if : github.event_name == 'push'
24+ outputs :
25+ docker_tag : ${{ steps.exposeValue.outputs.docker_tag }}
2426 permissions :
2527 contents : read
2628 packages : write
@@ -92,15 +94,14 @@ jobs:
9294 uses : aquasecurity/trivy-action@master
9395 with :
9496 image-ref : ${{ env.DOCKER_IMAGE_REPOSITORY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ needs.build.outputs.docker_tag }}
95- format : " template"
96- template : " @/contrib/sarif.tpl"
97+ format : " sarif"
9798 output : " trivy-results.sarif"
98- severity : ${{ env.VULNERABILITY_SCAN_LEVEL }}
99+ severity : " HIGH,CRITICAL "
99100 exit-code : " 0"
100101 ignore-unfixed : " true"
101102
102103 - name : Upload Trivy scan results to GitHub Security tab
103- uses : github/codeql-action/upload-sarif@v3
104+ uses : github/codeql-action/upload-sarif@v4
104105 if : always()
105106 with :
106107 sarif_file : " trivy-results.sarif"
You can’t perform that action at this time.
0 commit comments