-
Notifications
You must be signed in to change notification settings - Fork 630
Support multiple container identities #4415
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
base: main
Are you sure you want to change the base?
Conversation
a007d9b
to
9fa4469
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4415 +/- ##
==========================================
- Coverage 40.10% 34.21% -5.89%
==========================================
Files 155 218 +63
Lines 10044 15674 +5630
==========================================
+ Hits 4028 5363 +1335
- Misses 5530 9612 +4082
- Partials 486 699 +213 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9fa4469
to
7eb0302
Compare
cmd/cosign/cli/options/sign.go
Outdated
"issue a code signing certificate from Fulcio, even if a key is provided") | ||
|
||
cmd.Flags().StringVar(&o.SignContainerIdentity, "sign-container-identity", "", | ||
cmd.Flags().StringArrayVar(&o.SignContainerIdentities, "sign-container-identity", nil, |
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.
I'd use StringSliceVar
here so you can specify the values as:
--sign-container-identity=docker.io/name1:tag1,docker.io/name2:tag2
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.
Thanks, updated.
7eb0302
to
4ca7ac6
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.
Could you add a test, either in https://github.com/sigstore/cosign/blob/main/cmd/cosign/cli/sign/sign_test.go or better in https://github.com/sigstore/cosign/blob/main/test/e2e_test.go?
4ca7ac6
to
c337f93
Compare
Added an e2e test. |
With this change, cosign sign can be run only once when an image has multiple pull references. Closes sigstore#4330 Signed-off-by: Emily Zheng <[email protected]>
c337f93
to
0cb682a
Compare
Summary
With this change, cosign sign can be run only once when an image has multiple pull references.
Closes #4330
Release Note
cosign sign --sign-container-identity
supports more than one identities.Documentation