fix(ci): scan the pushed tag instead of a digest in Docker Scout (#436)

The Scout action rejects a digest reference with "missing or wrong image
input", which failed the v3.36.2 tag build after the push and skipped the
Helm chart publish. Scan the tag the run pushed: the release tag on a tag
build, edge on a main or scheduled build.
This commit is contained in:
ARUNAVO RAY
2026-09-16 07:53:56 +05:30
committed by GitHub
parent 8f60ccf6dc
commit f581292912
+4 -2
View File
@@ -233,8 +233,10 @@ jobs:
if: github.event_name != 'pull_request'
with:
command: cves,recommendations
# Scan the image this run pushed, whatever tags it carries.
image: ${{ env.REGISTRY }}/${{ env.IMAGE }}@${{ steps.build-and-push.outputs.digest }}
# Scan the image this run pushed: the release tag on a tag build,
# edge on a main or scheduled build. The action rejects digest
# references ("missing or wrong image input").
image: ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.tag_version.outputs.VERSION }}
sarif-file: scout-results.sarif
summary: true
exit-code: false