-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve dockerfile verify subcommand #3264
feat: improve dockerfile verify subcommand #3264
Conversation
443ba73
to
e6eadee
Compare
Codecov Report
@@ Coverage Diff @@
## main #3264 +/- ##
==========================================
+ Coverage 30.32% 30.67% +0.35%
==========================================
Files 155 155
Lines 9853 9923 +70
==========================================
+ Hits 2988 3044 +56
- Misses 6418 6429 +11
- Partials 447 450 +3
|
dc68327
to
58b51bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
just a small nit
thanks for adding tests as well
{ | ||
name: "gauntlet", | ||
fileContents: `FROM gcr.io/${TEST_IMAGE_REPO_PATH}/one AS one | ||
RUN script1 | ||
FROM gcr.io/$TEST_IMAGE_REPO_PATH/${TEST_SUBREPO}:latest | ||
RUN script2 | ||
FROM --platform=linux/amd64 gcr.io/${TEST_IMAGE_REPO_PATH}/$TEST_RUNTIME_SUBREPO | ||
COPY --from=gcr.io/someorg/someimage /etc/config /app/etc/config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit off, can you check the indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 76858d7
support images resolved from ENV, ARG and COPY --from Signed-off-by: Caleb Woodbine <calebwoodbine.public@gmail.com>
58b51bd
to
76858d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Thanks for the tests too!
Wooohoooo! Thank you for the merge @haydentherapper @hectorj2f @cpanato! |
support images resolved from ENV, ARG and COPY --from
resolves: #3260
Summary
cosign dockerfile verify
does not interpolate variables inFROM
statements, instead just panics.Adds the ability to load key-value pairs from
ENV
andARG
to interpolate inFROM
andCOPY --from
statements.Release Note
Improved discoverability for images in Dockerfiles