-
Notifications
You must be signed in to change notification settings - Fork 44
Support Authenticated GitHub Requests in Setup #47
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
Support Authenticated GitHub Requests in Setup #47
Conversation
|
@microsoft-github-policy-service agree [company="SPS Commerce"] |
|
@microsoft-github-policy-service agree company="SPS Commerce" |
|
@jacobmsft just checking in to see if you think there is an opportunity to pull this into |
|
Hi travisgosselin, Thank you for the PR and the detailed description! I think it definitely makes sense to merge to main. I am stuck on account access (and hence commenting from my alternate login) issues at the moment, hopefully that gets resolved in a couple days and I can merge it. |
|
Thanks @surajjacob |
Hi @surajjacob / @jacobmsft - any luck in sorting out permissions to be able to merge this? |
Tagging you again @surajjacob / @jacobmsft just in case you see this notification and by chance have permission to merge this in. My organization really badly needs this to continue using this container distribution. Will look at building our own custom version, but would really like to have this issue taken care of in the base here. |
Let me try getting someone else to merge your changes |
|
That would be very much appreciated. Thank you! |
|
@surajjacob / @jacobmsft / @scovetta - thanks for getting this merged in. I pulled down the latest available container in MCR registry and these updates are not in it. Is there a manual process behind the scenes to push updates there? Struggling a little in general with the visibility and versions in MCR - #45 |
Hey @travisgosselin , the mcr images are updated every Sunday, you should get it in next week's update. Alternatively, you can clone repository and do docker build. |
|
Thanks @surajjacob - that helps knowing the schedule for the MCR builds to know when they drop. Is that on a schedule to run even if no changes to the code base? Just wondering if that schedule implies new query pack releases and precompilation of them every Sunday as well on the latest container? |
|
@surajjacob / @jacobmsft / @scovetta - I'm pulling latest on this image from Also not seeing the changes in this PR or others merged in there, so assuming something has gone wrong with the weekly update. Using the weekly update as a base is very helpful not to rebuild everything. |
Using this container provides a great deal of portability, but after a certain amount of usage we ran into GitHub rate limiting in
setup.pyon container start:Our execution commands were all passing the
GITHUB_TOKENenvironment variable to docker run, as the intent was to also upload the results to a private GitHub repository. However, we have realized that the instantiation of PyGithub client doesn't pass in or make use of the same env variable for any authentication on requests to public repos to validate the CodeQL CLI version:https://github.com/microsoft/codeql-container/blob/main/container/libs/github.py#L5
Within our organization, the rate-limiting by IP Address is only going to get worse, and there is no reason for us to not authenticate for these requests.
This Pull Request does the following:
CHECK_LATEST_CODEQL_CLIis true (whereas before it always checked and left the value unused).The changes are pretty small, but I'm not sure next steps for testing/validation cross-platform, or if that is included in a build process.