Skip to content

Commit

Permalink
Fix attest bug with rekor URL (#840)
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa authored Oct 4, 2021
1 parent 7aaad1f commit 4cc0fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cosign/cli/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func addAttest(topLevel *cobra.Command) {
Sk: o.SecurityKey.Use,
Slot: o.SecurityKey.Slot,
IDToken: o.Fulcio.IdentityToken,
RekorURL: o.Rekor.URL,
FulcioURL: o.Fulcio.URL,
}
for _, img := range args {
Expand Down
2 changes: 2 additions & 0 deletions cmd/cosign/cli/options/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type AttestOptions struct {
Force bool
Recursive bool

Rekor RekorOptions
Fulcio FulcioOptions
SecurityKey SecurityKeyOptions
Predicate PredicateOptions
Expand All @@ -40,6 +41,7 @@ func (o *AttestOptions) AddFlags(cmd *cobra.Command) {
o.SecurityKey.AddFlags(cmd)
o.Predicate.AddFlags(cmd)
o.Fulcio.AddFlags(cmd)
o.Rekor.AddFlags(cmd)
o.Registry.AddFlags(cmd)

cmd.Flags().StringVar(&o.Key, "key", "",
Expand Down

0 comments on commit 4cc0fbd

Please sign in to comment.