dockerfile verify
command fails when stage names are used in FROM
#3880
Labels
bug
Something isn't working
Description
When a Dockerfile contains a
FROM
statement using a stage name instead of image,dockerfile verify
fails becausecosign
tries to pull the stage name as if it was an image.For example, using this Dockerfile:
running
cosign dockerfile verify Dockerfile --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity=https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main
ends with an error:Commenting out
FROM base_image
inDockerfile
makes it work.Version
The text was updated successfully, but these errors were encountered: