mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-12-01 13:00:55 -05:00
Fix the lask of Q000 @ oidc-exchange.py
This commit is contained in:
parent
d1883f61f8
commit
fa6d770e70
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ def render_claims(token: str) -> str:
|
||||||
_, payload, _ = token.split('.', 2)
|
_, payload, _ = token.split('.', 2)
|
||||||
|
|
||||||
# urlsafe_b64decode needs padding; JWT payloads don't contain any.
|
# urlsafe_b64decode needs padding; JWT payloads don't contain any.
|
||||||
payload += "=" * (4 - (len(payload) % 4))
|
payload += '=' * (4 - (len(payload) % 4))
|
||||||
claims = json.loads(base64.urlsafe_b64decode(payload))
|
claims = json.loads(base64.urlsafe_b64decode(payload))
|
||||||
|
|
||||||
def _get(name: str) -> str: # noqa: WPS430
|
def _get(name: str) -> str: # noqa: WPS430
|
||||||
|
|
Loading…
Reference in a new issue