Skip to content

Commit

Permalink
🐛 Skip cosign confirmation prompt. (#1143)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>
  • Loading branch information
spencerschrock authored May 11, 2023
1 parent 3eabc86 commit 914ca3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions signing/signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ func (s *Signing) SignScorecardResult(scorecardResultsFile string) error {
// Prepare settings for SignBlobCmd.
rootOpts := &sigOpts.RootOptions{Timeout: sigOpts.DefaultTimeout} // Just the timeout.
keyOpts := sigOpts.KeyOpts{
FulcioURL: sigOpts.DefaultFulcioURL, // Signing certificate provider.
RekorURL: sigOpts.DefaultRekorURL, // Transparency log.
OIDCIssuer: sigOpts.DefaultOIDCIssuerURL, // OIDC provider to get ID token to auth for Fulcio.
OIDCClientID: "sigstore",
FulcioURL: sigOpts.DefaultFulcioURL, // Signing certificate provider.
RekorURL: sigOpts.DefaultRekorURL, // Transparency log.
OIDCIssuer: sigOpts.DefaultOIDCIssuerURL, // OIDC provider to get ID token to auth for Fulcio.
OIDCClientID: "sigstore",
SkipConfirmation: true, // skip cosign's privacy confirmation prompt as we run non-interactively
}

// This command will use the provided OIDCIssuer to authenticate into Fulcio, which will generate the
Expand Down

0 comments on commit 914ca3e

Please sign in to comment.