You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, nil, fmt.Errorf("Only one of --sign-by and sign-by-sigstore-private-key can be used with sign-passphrase-file")
369
+
ifopts.signPassphraseFile!="" {
370
+
count:=0
371
+
ifopts.signByFingerprint!="" {
372
+
count++
373
+
}
374
+
ifopts.signBySequoiaFingerprint!="" {
375
+
count++
376
+
}
377
+
ifopts.signBySigstorePrivateKey!="" {
378
+
count++
379
+
}
380
+
ifcount>1 {
381
+
returnnil, nil, fmt.Errorf("Only one of --sign-by, --sign-by-sq-fingerprint and --sign-by-sigstore-private-key can be used with --sign-passphrase-file")
} // opts.signByFingerprint triggers a GPG-agent passphrase prompt, possibly using a more secure channel, so we usually shouldn’t prompt ourselves if no passphrase was explicitly provided.
398
+
// With opts.signBySequoiaFingerprint, we don’t prompt for a passphrase (for now??): We don’t know whether the key requires a passphrase.
0 commit comments