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

[results-processor] Provide GitHub token for api.github.com #4025

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gsnedders
Copy link
Member

@gsnedders gsnedders commented Oct 1, 2024

Sometimes (e.g., from GitHub Actions), we might get passed a URL to process which on api.github.com, which requires a token to access. Thus, we should pull down our GitHub token and add that as a header.

See also #4020, which this hopefully fixes.

Sometimes (e.g., from GitHub Actions), we might get passed a URL to
process which on api.github.com, which requires a token to access.
Thus, we should pull down our GitHub token and add that as a header.
Comment on lines +140 to +145
r = requests.get(
url,
headers=extra_headers,
stream=True,
timeout=self.TIMEOUT_WAIT,
)

Check failure

Code scanning / CodeQL

Full server-side request forgery Critical

The full URL of this request depends on a
user-provided value
.
Comment on lines +151 to +156
r = requests.get(
url,
headers=extra_headers,
stream=True,
timeout=self.TIMEOUT_WAIT,
)

Check failure

Code scanning / CodeQL

Full server-side request forgery Critical

The full URL of this request depends on a
user-provided value
.
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.

1 participant