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

Fix header check in secret scanning #17275

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

ewdurbin
Copy link
Member

@ewdurbin ewdurbin commented Dec 12, 2024

The refactor in #17218 caused GitHub requests to the token endpoint to all end up 404ing due to case-sensitivity on the required headers.

Previously the require_headers predicate was used which is case-insensitive.

Update the _detect_origin function to use the case-insensitive nature of Pyramid/WebOb's request.headers object.

@ewdurbin ewdurbin requested a review from a team as a code owner December 12, 2024 14:13
@ewdurbin ewdurbin merged commit 87e5366 into main Dec 12, 2024
20 checks passed
@ewdurbin ewdurbin deleted the fix_header_check_in_secret_scanning branch December 12, 2024 14:32
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