René's URL Explorer Experiment


Title: Introduce wrapper around codeql by robertbrignull · Pull Request #93 · github/codeql-action · GitHub

Open Graph Title: Introduce wrapper around codeql by robertbrignull · Pull Request #93 · github/codeql-action

X Title: Introduce wrapper around codeql by robertbrignull · Pull Request #93 · github/codeql-action

Description: I'd be interested to know what people think of this. This PR puts all calls to CodeQL behind an object with an interface that we can override in unit tests. Currently it's not possible to write tests for any area that makes CodeQL calls because it won't be available and you don't want to be actually running queries or creating databases during the unit tests. I'm doing this now because I'd like to move processing of external queries earlier in the process to where we parse the config, and that requires running CodeQL in codepaths that we currently unit test. As well as making more code testable, this also hopefully makes things easier to understand by keeping all the codeql invocations in one place and imposing that there is a named function interface to it with documentation so it's more clear what each call does. I had to use a bit of judgement (i.e. random guesses) at where to draw the boundary of the interface. In some cases it includes a little bit of logic, and in one case it's actually two CodeQL calls combined into one. If you have any suggestions for improvements then please say. @sampart, @Daverlo, @chrisgavin, @rneatherway 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: I'd be interested to know what people think of this. This PR puts all calls to CodeQL behind an object with an interface that we can override in unit tests. Currently it's not possible to w...

X Description: I'd be interested to know what people think of this. This PR puts all calls to CodeQL behind an object with an interface that we can override in unit tests. Currently it's not possi...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0257745f-8781-4268-82e3-39d9d9a99efe
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idED10:30A6D1:12FEAFA:1B8E1F9:6A563AB6
html-safe-noncee679d62d4648c7f3747d5060dd0c7da87e7f7c644a53bf61b1c777ce35b4de4b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDEwOjMwQTZEMToxMkZFQUZBOjFCOEUxRjk6NkE1NjNBQjYiLCJ2aXNpdG9yX2lkIjoiNjMxMDE5NzQwMDgxNzc3NzMzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac24143ad970a5f6e961d993460cc036b66ecba553992827313f2af2f631b374f6
hovercard-subject-tagpull_request:442146789
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/93/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:altI'd be interested to know what people think of this. This PR puts all calls to CodeQL behind an object with an interface that we can override in unit tests. Currently it's not possible to w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b
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
release423b2fb76ac2b90de5ab599b7a76a0d2b2c83f24
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/93/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F93%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%2F93%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/93/files
Reloadhttps://github.com/github/codeql-action/pull/93/files
Reloadhttps://github.com/github/codeql-action/pull/93/files
Please reload this pagehttps://github.com/github/codeql-action/pull/93/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 157 https://github.com/github/codeql-action/issues
Pull requests 27 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
codeql_mockhttps://github.com/github/codeql-action/tree/codeql_mock
Conversation 13 https://github.com/github/codeql-action/pull/93
Findings https://github.com/github/codeql-action/pull/93/findings
Commits 2 https://github.com/github/codeql-action/pull/93/commits
Checks 0 https://github.com/github/codeql-action/pull/93/checks
Files changed https://github.com/github/codeql-action/pull/93/files
Please reload this pagehttps://github.com/github/codeql-action/pull/93/files
Introduce wrapper around codeql https://github.com/github/codeql-action/pull/93/files#top
Show all changes 2 commits https://github.com/github/codeql-action/pull/93/files
c41d287 Introduce wrapper around codeql robertbrignull Jun 26, 2020 https://github.com/github/codeql-action/pull/93/commits/c41d287caef51d1334209736d9b1949c797f63af
5ab09ae Make parameter names more descriptive robertbrignull Jul 2, 2020 https://github.com/github/codeql-action/pull/93/commits/5ab09ae291e04344bf18121a816e7edda440e588
Clear filters https://github.com/github/codeql-action/pull/93/files
Please reload this pagehttps://github.com/github/codeql-action/pull/93/files
Please reload this pagehttps://github.com/github/codeql-action/pull/93/files
autobuild.js https://github.com/github/codeql-action/pull/93/files#diff-d85b7b843f71dd120db4b7f43fc567ca182bf0347b077cd690b7bd650acaa606
autobuild.js.map https://github.com/github/codeql-action/pull/93/files#diff-7e16048c8a24fdf059ab69ea374066068718dd9756280f09d0f281997e8b8ae9
codeql.js https://github.com/github/codeql-action/pull/93/files#diff-5bd808ec74194675da6319beb80c228163039f26c9ddf1b8bf3eef9b12c9341b
codeql.js.map https://github.com/github/codeql-action/pull/93/files#diff-325a6cb428a1dafbcfbd43461aa4ae95826c648a3f9a7d7b6e6bf05878152d64
codeql.test.js https://github.com/github/codeql-action/pull/93/files#diff-1df80d9719b2ddaa26ce7e96bbcebb800cd7002b7626a4db497e4b67a7dd2593
codeql.test.js.map https://github.com/github/codeql-action/pull/93/files#diff-d5a6920eaa0ba53427ddc7e8e3157ab0e32b1e67c08ebb5685ab41989fd62bb0
finalize-db.js https://github.com/github/codeql-action/pull/93/files#diff-0718e3e92a103d254d2a24b24d8b8cd75970ae3c8b195ec8e4713d392323222c
finalize-db.js.map https://github.com/github/codeql-action/pull/93/files#diff-06c49c3f8e23c5c9bf6fba4b926e5088a3f2b4f48bf74ae64140f7e1822cf683
setup-tracer.js https://github.com/github/codeql-action/pull/93/files#diff-877b143cf413a90c33abd53758e2827d64840dd70d0a6b2cca162e03846a06ea
setup-tracer.js.map https://github.com/github/codeql-action/pull/93/files#diff-23f2b9f88b890e8be64f341f58f8f242ab824a85fe527f24b6c7a37de047ff2d
shared-environment.js https://github.com/github/codeql-action/pull/93/files#diff-54ee56fdea0bf0a1aeaad4f1073fe8b200e3a47afd1df7da1b7bf07a6888bbd2
shared-environment.js.map https://github.com/github/codeql-action/pull/93/files#diff-6aa43e46572a4319f3aa2e809fd23f2616996a4802a8a0490de380c7f855dab5
autobuild.ts https://github.com/github/codeql-action/pull/93/files#diff-e8e280e07642ac43bae0f81a751fcf1841a78a5a34db8977b4e540690d36ecf5
codeql.test.ts https://github.com/github/codeql-action/pull/93/files#diff-a59b656ff6cb8e9e4da88f2f927636ffc66ffadca08a86eb1024f9c2690d8ad9
codeql.ts https://github.com/github/codeql-action/pull/93/files#diff-473ad8cf33ad034dc4f9ae468a3ce5d87106ace4f96f6a23a000261d46efaa60
finalize-db.ts https://github.com/github/codeql-action/pull/93/files#diff-8ccda6cc78c0645f45113228ce43bfac9fc341746dbf1680430a20bacc75e0a1
setup-tools.ts https://github.com/github/codeql-action/pull/93/files#diff-2fe99f311f46a15301c47ca204127fa8fcf7769c39901771616683494e7e62ca
setup-tracer.ts https://github.com/github/codeql-action/pull/93/files#diff-32828111aa07ddc8e64c1ecb5182060aa40f5b9e50804f0245050a997efab618
shared-environment.ts https://github.com/github/codeql-action/pull/93/files#diff-6c7b3bb4430ed4cfff0c133a9f462c2cd2200a0938c97538a966123739df30e2
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/autobuild.jshttps://github.com/github/codeql-action/pull/93/files#diff-d85b7b843f71dd120db4b7f43fc567ca182bf0347b077cd690b7bd650acaa606
View file https://github.com/github/codeql-action/blob/5ab09ae291e04344bf18121a816e7edda440e588/lib/autobuild.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/93/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/autobuild.js.maphttps://github.com/github/codeql-action/pull/93/files#diff-7e16048c8a24fdf059ab69ea374066068718dd9756280f09d0f281997e8b8ae9
View file https://github.com/github/codeql-action/blob/5ab09ae291e04344bf18121a816e7edda440e588/lib/autobuild.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/93/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/codeql.jshttps://github.com/github/codeql-action/pull/93/files#diff-5bd808ec74194675da6319beb80c228163039f26c9ddf1b8bf3eef9b12c9341b
View file https://github.com/github/codeql-action/blob/5ab09ae291e04344bf18121a816e7edda440e588/lib/codeql.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/93/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/codeql.js.maphttps://github.com/github/codeql-action/pull/93/files#diff-325a6cb428a1dafbcfbd43461aa4ae95826c648a3f9a7d7b6e6bf05878152d64
View file https://github.com/github/codeql-action/blob/5ab09ae291e04344bf18121a816e7edda440e588/lib/codeql.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/93/files
Please reload this pagehttps://github.com/github/codeql-action/pull/93/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.