Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions twine/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _make_trusted_publishing_token(self) -> t.Optional[TrustedPublishingToken]:
# Indices are expected to support `https://{domain}/_/oidc/audience`,
# which tells OIDC exchange clients which audience to use.
audience_url = f"https://{repository_domain}/_/oidc/audience"
resp = session.get(audience_url, timeout=5)
resp = session.get(audience_url)
resp.raise_for_status()
audience = cast(str, resp.json()["audience"])

Expand Down Expand Up @@ -197,7 +197,6 @@ def _make_trusted_publishing_token(self) -> t.Optional[TrustedPublishingToken]:
mint_token_resp = session.post(
token_exchange_url,
json={"token": oidc_token},
timeout=5, # S113 wants a timeout
)
try:
mint_token_payload = mint_token_resp.json()
Expand Down
Loading