Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oidc: configure timeouts for requests #541

Merged
merged 2 commits into from
Mar 11, 2023

Conversation

tnytown
Copy link
Collaborator

@tnytown tnytown commented Mar 11, 2023

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.

Signed-off-by: Andrew Pan <a@tny.town>
Copy link
Member

@woodruffw woodruffw left a comment

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.)

Signed-off-by: Andrew Pan <a@tny.town>
Copy link
Member

@woodruffw woodruffw left a comment

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