René's URL Explorer Experiment


Title: Use a single Octokit client for everything rather than a bunch of Octokits and an HTTP client. by chrisgavin · Pull Request #82 · github/codeql-action · GitHub

Open Graph Title: Use a single Octokit client for everything rather than a bunch of Octokits and an HTTP client. by chrisgavin · Pull Request #82 · github/codeql-action

X Title: Use a single Octokit client for everything rather than a bunch of Octokits and an HTTP client. by chrisgavin · Pull Request #82 · github/codeql-action

Description: Currently our requests to the GitHub API are pretty inconsistent. In a few places we use an Octokit, but we construct them at the point of use potentially leading to them being initialized inconsistently. We also sometimes just use an HTTP client. Perhaps most importantly, none of these methods actually respect the GITHUB_API_URL environment variable that tells you where to find the GitHub API. Because of this I've replaced these custom Octokits and the HTTP client with a single Octokit to ensure that all requests are made consistently and to the correct host. Merge / deployment checklist Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in other repos! CodeQL using init/analyze actions 3rd party tool using upload action Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.

Open Graph Description: Currently our requests to the GitHub API are pretty inconsistent. In a few places we use an Octokit, but we construct them at the point of use potentially leading to them being initialized inconsis...

X Description: Currently our requests to the GitHub API are pretty inconsistent. In a few places we use an Octokit, but we construct them at the point of use potentially leading to them being initialized inconsis...

Opengraph URL: https://github.com/github/codeql-action/pull/82

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0f5c7f16-cabc-236a-4063-1336989386f6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB678:1D923B:77DEA5:A13266:6A541997
html-safe-nonce57883ea13f2d1bf34418809176fc6635008f71f94849a1e6c29e4d31bebc19c7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjc4OjFEOTIzQjo3N0RFQTU6QTEzMjY2OjZBNTQxOTk3IiwidmlzaXRvcl9pZCI6Ijc1ODkwNTIxNzQwODY0NDU0NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4bc4311fb25d2fae45643ad532c6899082e42b5c8a2c95daa53927982bb96704
hovercard-subject-tagpull_request:438794324
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/82/files
twitter:imagehttps://avatars.githubusercontent.com/u/5584439?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5584439?s=400&v=4
og:image:altCurrently our requests to the GitHub API are pretty inconsistent. In a few places we use an Octokit, but we construct them at the point of use potentially leading to them being initialized inconsis...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/82/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F82%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F82%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/82/files
Reloadhttps://github.com/github/codeql-action/pull/82/files
Reloadhttps://github.com/github/codeql-action/pull/82/files
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 472 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 24 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
chrisgavinhttps://github.com/chrisgavin
mainhttps://github.com/github/codeql-action/tree/main
octokithttps://github.com/github/codeql-action/tree/octokit
Conversation 11 https://github.com/github/codeql-action/pull/82
Findings https://github.com/github/codeql-action/pull/82/findings
Commits 3 https://github.com/github/codeql-action/pull/82/commits
Checks 0 https://github.com/github/codeql-action/pull/82/checks
Files changed https://github.com/github/codeql-action/pull/82/files
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
Use a single Octokit client for everything rather than a bunch of Octokits and an HTTP client. https://github.com/github/codeql-action/pull/82/files#top
Show all changes 3 commits https://github.com/github/codeql-action/pull/82/files
74c48f7 Use a single Octokit client for everything rather than a bunch of Oct… chrisgavin Jun 23, 2020 https://github.com/github/codeql-action/pull/82/commits/74c48f71fa285c2c223bd4363bfb94f185e01b4b
464ce1b Manually convert response.data to a JSON string. chrisgavin Jun 24, 2020 https://github.com/github/codeql-action/pull/82/commits/464ce1b43aa27e496c6547890e1081d9ef31fa31
ef50797 Merge branch 'main' into octokit chrisgavin Jun 26, 2020 https://github.com/github/codeql-action/pull/82/commits/ef507971e74648b561e8e7010a525b03e35dc395
Clear filters https://github.com/github/codeql-action/pull/82/files
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
api-client.js https://github.com/github/codeql-action/pull/82/files#diff-94347f352ede0a83973cdf3b2bd4d1499ea5be7b686fce6fdb34891492941a91
api-client.js.map https://github.com/github/codeql-action/pull/82/files#diff-5db6e95c4e914346af3c523274edfeb6b99180d75ed630fa6a4be778b4e0dcba
upload-lib.js https://github.com/github/codeql-action/pull/82/files#diff-8ea2623264a4246323c551f1b018e163d8ea00c2fed5c4f4ead1c5b9d036cfd6
upload-lib.js.map https://github.com/github/codeql-action/pull/82/files#diff-4860f509f2ff29c051b04b72ffabea4f0eb9eaff65a43777a170f288fd32c851
util.js https://github.com/github/codeql-action/pull/82/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
util.js.map https://github.com/github/codeql-action/pull/82/files#diff-709978ba6652a9d1f2f2cfb89f74b8743ec9a8aac0470253725ecf2c62a1651e
api-client.ts https://github.com/github/codeql-action/pull/82/files#diff-42ff9f1380ec4f23f68cf329edd327ab3298a662fc2df90bd01da76a69fecf59
upload-lib.ts https://github.com/github/codeql-action/pull/82/files#diff-9c600636c759380cf603b7cb23771d1fe5b3cf73df63a71bd566c0cf34fa6b38
util.ts https://github.com/github/codeql-action/pull/82/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/api-client.jshttps://github.com/github/codeql-action/pull/82/files#diff-94347f352ede0a83973cdf3b2bd4d1499ea5be7b686fce6fdb34891492941a91
View file https://github.com/github/codeql-action/blob/ef507971e74648b561e8e7010a525b03e35dc395/lib/api-client.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/api-client.js.maphttps://github.com/github/codeql-action/pull/82/files#diff-5db6e95c4e914346af3c523274edfeb6b99180d75ed630fa6a4be778b4e0dcba
View file https://github.com/github/codeql-action/blob/ef507971e74648b561e8e7010a525b03e35dc395/lib/api-client.js.map
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/upload-lib.jshttps://github.com/github/codeql-action/pull/82/files#diff-8ea2623264a4246323c551f1b018e163d8ea00c2fed5c4f4ead1c5b9d036cfd6
View file https://github.com/github/codeql-action/blob/ef507971e74648b561e8e7010a525b03e35dc395/lib/upload-lib.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/upload-lib.js.maphttps://github.com/github/codeql-action/pull/82/files#diff-4860f509f2ff29c051b04b72ffabea4f0eb9eaff65a43777a170f288fd32c851
View file https://github.com/github/codeql-action/blob/ef507971e74648b561e8e7010a525b03e35dc395/lib/upload-lib.js.map
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
Please reload this pagehttps://github.com/github/codeql-action/pull/82/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.