René's URL Explorer Experiment


Title: Make URL parsing more robust, and handle subdomain isolation by robertbrignull · Pull Request #235 · github/codeql-action · GitHub

Open Graph Title: Make URL parsing more robust, and handle subdomain isolation by robertbrignull · Pull Request #235 · github/codeql-action

X Title: Make URL parsing more robust, and handle subdomain isolation by robertbrignull · Pull Request #235 · github/codeql-action

Description: This PR makes the runner's parsing of the URL a bit more robust and should make it handle the case where GHES is using subdomain isolation. I need to test that this actually works and I will do so before merging, but from my prelimanary experimentation it looks like it should do as the /api/v3 route on the main GHES domain still seems to work. So we don't need to be able to reconstruct the isolated subdomain. The other changes to the URL parsing make it so if you don't pass a scheme then it'll assume it's https. Also makes the output URL more consistent. Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.

Open Graph Description: This PR makes the runner's parsing of the URL a bit more robust and should make it handle the case where GHES is using subdomain isolation. I need to test that this actually works and I will do...

X Description: This PR makes the runner's parsing of the URL a bit more robust and should make it handle the case where GHES is using subdomain isolation. I need to test that this actually works and I wil...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:adf79570-b4f5-3821-49ef-9794a138b343
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCCE:3DBE0D:843FF0:B75C49:6A552F6C
html-safe-nonceca3baac581106cdd3c78a99389491a20dcbb9daf34ef5580b970bc5facf885dd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0NFOjNEQkUwRDo4NDNGRjA6Qjc1QzQ5OjZBNTUyRjZDIiwidmlzaXRvcl9pZCI6IjQ4NjU5NjcwNTkzMDAwNjkyMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac38efa2865a5e76930270b1b4aaa7fa264a581a19884efecb2b546f8df036325c
hovercard-subject-tagpull_request:494299759
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/235/files
twitter:imagehttps://avatars.githubusercontent.com/u/3749000?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3749000?s=400&v=4
og:image:altThis PR makes the runner's parsing of the URL a bit more robust and should make it handle the case where GHES is using subdomain isolation. I need to test that this actually works and I will do...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89
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
releasecf96660b44878f418b09d3d6ecde00ad62332910
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/235/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F235%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%2F235%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/235/files
Reloadhttps://github.com/github/codeql-action/pull/235/files
Reloadhttps://github.com/github/codeql-action/pull/235/files
Please reload this pagehttps://github.com/github/codeql-action/pull/235/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 25 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
robertbrignullhttps://github.com/robertbrignull
mainhttps://github.com/github/codeql-action/tree/main
robertbrignull/subdomainhttps://github.com/github/codeql-action/tree/robertbrignull/subdomain
Conversation 4 https://github.com/github/codeql-action/pull/235
Findings https://github.com/github/codeql-action/pull/235/findings
Commits 3 https://github.com/github/codeql-action/pull/235/commits
Checks 0 https://github.com/github/codeql-action/pull/235/checks
Files changed https://github.com/github/codeql-action/pull/235/files
Please reload this pagehttps://github.com/github/codeql-action/pull/235/files
Make URL parsing more robust, and handle subdomain isolation https://github.com/github/codeql-action/pull/235/files#top
Show all changes 3 commits https://github.com/github/codeql-action/pull/235/files
c4dc1b0 Make URL parsing more robust robertbrignull Sep 28, 2020 https://github.com/github/codeql-action/pull/235/commits/c4dc1b0438f3d68758ca053c80017bafc077e0e4
28a5b95 Merge branch 'main' into robertbrignull/subdomain robertbrignull Oct 5, 2020 https://github.com/github/codeql-action/pull/235/commits/28a5b954e7731a0e0217efd2811f8a941486ea0e
b185050 Use GITHUB_DOTCOM_URL so URL deduplication works robertbrignull Oct 5, 2020 https://github.com/github/codeql-action/pull/235/commits/b18505056377fb5ba8d6437356dd952ab2d928d4
Clear filters https://github.com/github/codeql-action/pull/235/files
Please reload this pagehttps://github.com/github/codeql-action/pull/235/files
Please reload this pagehttps://github.com/github/codeql-action/pull/235/files
runner.js https://github.com/github/codeql-action/pull/235/files#diff-37b88258822cb207e2caa1a88d4fbc057924da72c5580d1f39b78349214ab622
runner.js.map https://github.com/github/codeql-action/pull/235/files#diff-be86577d47a297e60c0c4b77e9def07c8c495e9025e2af2c12ed313d30e99a34
util.js https://github.com/github/codeql-action/pull/235/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
util.js.map https://github.com/github/codeql-action/pull/235/files#diff-709978ba6652a9d1f2f2cfb89f74b8743ec9a8aac0470253725ecf2c62a1651e
util.test.js https://github.com/github/codeql-action/pull/235/files#diff-141be3d78540748da20f193d2ef9e73b4db3315fa26088ae9672859887a0edba
util.test.js.map https://github.com/github/codeql-action/pull/235/files#diff-2ec6a6b1036bffea2092b87dabc38530948425542e6bbbea9d1d3be8dd96220a
runner.ts https://github.com/github/codeql-action/pull/235/files#diff-d64beacb5711e9646c8e8e25cf23f283358d86c7f5f50b6f3aaf18044e356942
util.test.ts https://github.com/github/codeql-action/pull/235/files#diff-5b8db3845646ec2fda6f1a8fb2b5b8c67460b5070568f4be6320f344704969cd
util.ts https://github.com/github/codeql-action/pull/235/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/runner.jshttps://github.com/github/codeql-action/pull/235/files#diff-37b88258822cb207e2caa1a88d4fbc057924da72c5580d1f39b78349214ab622
View file https://github.com/github/codeql-action/blob/b18505056377fb5ba8d6437356dd952ab2d928d4/lib/runner.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/235/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/runner.js.maphttps://github.com/github/codeql-action/pull/235/files#diff-be86577d47a297e60c0c4b77e9def07c8c495e9025e2af2c12ed313d30e99a34
View file https://github.com/github/codeql-action/blob/b18505056377fb5ba8d6437356dd952ab2d928d4/lib/runner.js.map
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/github/codeql-action/pull/235/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/util.jshttps://github.com/github/codeql-action/pull/235/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
View file https://github.com/github/codeql-action/blob/b18505056377fb5ba8d6437356dd952ab2d928d4/lib/util.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/235/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/util.js.maphttps://github.com/github/codeql-action/pull/235/files#diff-709978ba6652a9d1f2f2cfb89f74b8743ec9a8aac0470253725ecf2c62a1651e
View file https://github.com/github/codeql-action/blob/b18505056377fb5ba8d6437356dd952ab2d928d4/lib/util.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/235/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/util.test.jshttps://github.com/github/codeql-action/pull/235/files#diff-141be3d78540748da20f193d2ef9e73b4db3315fa26088ae9672859887a0edba
View file https://github.com/github/codeql-action/blob/b18505056377fb5ba8d6437356dd952ab2d928d4/lib/util.test.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/235/files
Please reload this pagehttps://github.com/github/codeql-action/pull/235/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.