We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01f957 commit 856aa57Copy full SHA for 856aa57
securesystemslib/signer/_sigstore_signer.py
@@ -141,7 +141,7 @@ def from_priv_key_uri(
141
cls,
142
priv_key_uri: str,
143
public_key: Key,
144
- _secrets_handler: Optional[SecretsHandler] = None,
+ secrets_handler: Optional[SecretsHandler] = None,
145
) -> "SigstoreSigner":
146
# pylint: disable=import-outside-toplevel
147
try:
@@ -163,8 +163,7 @@ def from_priv_key_uri(
163
if not ambient:
164
# TODO: Restrict oauth flow to use identity/issuer from public_key
165
# TODO: Use secrets_handler for identity_token() secret arg
166
- issuer = Issuer.production()
167
- token = issuer.identity_token()
+ token = Issuer.production().identity_token()
168
else:
169
credential = detect_credential()
170
if not credential:
0 commit comments