Skip to content

oidc: configure timeouts for requests - #541

Merged
woodruffw merged 2 commits into
sigstore:mainfrom
trail-of-forks:andrew/requests-timeout
Mar 11, 2023
Merged

woodruffw merged 2 commits into
sigstore:mainfrom
trail-of-forks:andrew/requests-timeout

Conversation

@tnytown

@tnytown tnytown commented Mar 11, 2023

Copy link
Copy Markdown
Contributor

Summary

Bandit recently released v1.7.5, which includes a new lint for requests usage without a timeout. This changeset fixes our usage of requests in oidc.

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also handle the Timeout exception, now that we're explicitly handling the timeout case.

(We should have been doing this before, but now's a good opportunity to address it.)

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@woodruffw
woodruffw merged commit d544abe into sigstore:main Mar 11, 2023
@woodruffw
woodruffw deleted the andrew/requests-timeout branch March 11, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants