Skip to content

Commit

Permalink
Add security check before docker publish
Browse files Browse the repository at this point in the history
Fix #624
  • Loading branch information
gkorland authored Jan 24, 2025
1 parent f8d1e06 commit 4dd873d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,20 @@ jobs:
with:
context: .
file: ./Dockerfile
push: false
tags: ${{ env.TAGS }}

- name: Scan image for vulnerabilities
uses: aquasecurity/[email protected]
with:
image-ref: ${{ env.TAGS }}
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'

- name: Push image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.TAGS }}

0 comments on commit 4dd873d

Please sign in to comment.