You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The release workflow scans an image it builds for the scan job, then the publishing job builds the image again and pushes, attests and signs that second build. The published image is never scanned itself. Base images and dependencies are pinned, so the two builds should match, but nothing checks that. The same applies to the dev images built in checks.
Expected
The image that is signed and tagged is the image that was scanned:
Build and push the image by digest, untagged.
Scan <image>@<digest> in a job without release credentials, signing identity or id-token. Trivy resolves its binary from a mutable tag, so it must not run next to secrets.
Only if the scan passes: attest and sign that digest, then tag it (imagetools create, checking that each tag resolves to the signed digest).
A failed scan leaves an untagged, unsigned digest that nobody consumes. The docs ("Verifying images and charts", contributing guide) then say that published images are the scanned ones. The same flow applies to dev images. Keep FOCA and Cloud Registry identical where possible, e.g. through the shared scan-image composite action.
Activity