Skip to content

Commit bf88cf4

Browse files
committed
Set Trivy action to exit with code 1 for vulnerability checks in Docker workflow
1 parent 55f8b38 commit bf88cf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
if: ${{ github.event_name != 'pull_request' }}
6666
uses: aquasecurity/[email protected]
6767
with:
68+
exit-code: '1'
6869
image-ref: ${{ fromJSON(steps.build.outputs.metadata)['image.name'] }}
6970
format: 'github'
7071
github-pat: ${{ github.token }}

0 commit comments

Comments
 (0)