Skip to content

Commit 856aa57

Browse files
committed
sigstore: Tweak method signature
underscore prefix was used to avoid a too-many-locals warning: Workaround that otherwise to make the method signature match the parent class.
1 parent c01f957 commit 856aa57

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

securesystemslib/signer/_sigstore_signer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def from_priv_key_uri(
141141
cls,
142142
priv_key_uri: str,
143143
public_key: Key,
144-
_secrets_handler: Optional[SecretsHandler] = None,
144+
secrets_handler: Optional[SecretsHandler] = None,
145145
) -> "SigstoreSigner":
146146
# pylint: disable=import-outside-toplevel
147147
try:
@@ -163,8 +163,7 @@ def from_priv_key_uri(
163163
if not ambient:
164164
# TODO: Restrict oauth flow to use identity/issuer from public_key
165165
# TODO: Use secrets_handler for identity_token() secret arg
166-
issuer = Issuer.production()
167-
token = issuer.identity_token()
166+
token = Issuer.production().identity_token()
168167
else:
169168
credential = detect_credential()
170169
if not credential:

0 commit comments

Comments
 (0)