Skip to content

Commit

Permalink
feat(): execute Docker Scout against tags yielded by metadata step
Browse files Browse the repository at this point in the history
  • Loading branch information
e7d committed Apr 5, 2024
1 parent 78860f1 commit 9bceca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=$repo.default_branch
type=sha,prefix=,suffix=,format=short
type=ref,event=pr
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -72,7 +72,7 @@ jobs:
uses: docker/scout-action@v1
with:
command: cves,recommendations,compare
image: ${{ vars.DOCKERHUB_IMAGE }}:${{ env.SHA }}
image: ${{ steps.meta.outputs.tags }}
to: ${{ vars.DOCKERHUB_IMAGE }}:latest
ignore-base: true
ignore-unchanged: true
Expand Down

0 comments on commit 9bceca5

Please sign in to comment.