From 9d9537e856fd56d3e4c553cb205b33ee507790bb Mon Sep 17 00:00:00 2001 From: e7d Date: Fri, 5 Apr 2024 11:17:49 +0200 Subject: [PATCH] feat(): execute Docker Scout against tags yielded by metadata step --- .github/workflows/docker-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9ebe8fd..bff74ac 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 @@ -72,8 +72,8 @@ 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 @@ -81,7 +81,7 @@ jobs: 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 }}