-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds image scanning between build and push
Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,20 @@ jobs: | |
run: echo "TAG=$INPUT_VERSION" >> "$GITHUB_ENV" | ||
env: | ||
INPUT_VERSION: ${{ github.event.inputs.tag }} | ||
|
||
- name: Build and export to Docker | ||
uses: docker/build-push-action@v5 | ||
with: | ||
load: true | ||
tags: ${{ env.IMAGE_REGISTRY }}/${{ vars.QUAY_ORG }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} | ||
|
||
- name: Pre-push Image Scan | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: ${{ env.IMAGE_REGISTRY }}/${{ vars.QUAY_ORG }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} | ||
exit-code: 1 | ||
scanners: secret | ||
severity: HIGH,CRITICAL,MEDIUM | ||
|
||
- name: Build and Push | ||
uses: docker/build-push-action@v5 | ||
|