mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-12-28 18:04:50 -05:00
oidc-exchange: ignore a nested function
Signed-off-by: William Woodruff <william@trailofbits.com>
This commit is contained in:
parent
8bdd0cc2a0
commit
e5f0690e91
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ def render_claims(token: str) -> str:
|
|||
_, payload, _ = token.split(".", 2)
|
||||
claims = json.loads(base64.urlsafe_b64decode(payload))
|
||||
|
||||
def _get(name: str) -> str:
|
||||
def _get(name: str) -> str: # noqa: WPS430
|
||||
return claims.get(name, "MISSING")
|
||||
|
||||
return _RENDERED_CLAIMS.format(
|
||||
|
|
Loading…
Reference in a new issue