Skip to content

Commit

Permalink
sigstore: Tweak method signature
Browse files Browse the repository at this point in the history
underscore prefix was used to avoid a too-many-locals warning:
Workaround that otherwise to make the method signature match the
parent class.
  • Loading branch information
jku committed Oct 2, 2023
1 parent c01f957 commit 856aa57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions securesystemslib/signer/_sigstore_signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def from_priv_key_uri(
cls,
priv_key_uri: str,
public_key: Key,
_secrets_handler: Optional[SecretsHandler] = None,
secrets_handler: Optional[SecretsHandler] = None,
) -> "SigstoreSigner":
# pylint: disable=import-outside-toplevel
try:
Expand All @@ -163,8 +163,7 @@ def from_priv_key_uri(
if not ambient:
# TODO: Restrict oauth flow to use identity/issuer from public_key
# TODO: Use secrets_handler for identity_token() secret arg
issuer = Issuer.production()
token = issuer.identity_token()
token = Issuer.production().identity_token()
else:
credential = detect_credential()
if not credential:
Expand Down

0 comments on commit 856aa57

Please sign in to comment.