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 9d9537e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
# ${{ vars.DOCKERHUB_IMAGE }}
images: |
${{ vars.DOCKERHUB_IMAGE }}
${{ vars.GHCR_IMAGE }}
labels: |
org.opencontainers.image.title=docker-diskmark
Expand Down Expand Up @@ -72,16 +72,16 @@ jobs:
uses: docker/scout-action@v1
with:
command: cves,recommendations,compare
image: ${{ vars.DOCKERHUB_IMAGE }}:${{ env.SHA }}
to: ${{ vars.DOCKERHUB_IMAGE }}:latest
image: ${{ steps.meta.outputs.tags }}
to: ${{ vars.GHCR_IMAGE }}:latest
ignore-base: true
ignore-unchanged: true
only-fixed: true
# only-severities: critical,high
write-comment: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update repo description
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' }}
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down

0 comments on commit 9d9537e

Please sign in to comment.