From 4781f823e9f795652e1aa9d035f2ead8579540a5 Mon Sep 17 00:00:00 2001 From: Chris Ayers Date: Wed, 14 Feb 2024 05:58:26 +0000 Subject: [PATCH] Update Trivy vulnerability scanner image reference --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 67b66bf..f3a1a12 100755 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -62,7 +62,7 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: 'docker.io/library/${{ env.IMAGE_NAME }}:${{ env.TAG }}' + image-ref: ${{ fromJSON(steps.build-and-push.outputs.metadata)['image.name'] }} format: 'github' github-pat: ${{ github.token }} env: