Skip to content

Improve dockerfile verify #3260

@BobyMCbobs

Description

@BobyMCbobs

Description

The command cosign dockerfile verify ./Dockerfile works great if a Dockerfile contains literal image names but not for anything else.

I'd like the two following methods to be supported

  1. resolve from variable
ARG IMAGE=myimage:mytag
FROM $IMAGE

(ARG or ENV)

  1. image in COPY
COPY --from=myimage:mytag /etc/passwd /etc/passwd

/assign

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions