René's URL Explorer Experiment


Title: Cache CLI extractor paths across Actions steps by mario-campos · Pull Request #3950 · github/codeql-action · GitHub

Open Graph Title: Cache CLI extractor paths across Actions steps by mario-campos · Pull Request #3950 · github/codeql-action

X Title: Cache CLI extractor paths across Actions steps by mario-campos · Pull Request #3950 · github/codeql-action

Description: Actions for running CodeQL analysis. Contribute to github/codeql-action development by creating an account on GitHub.

Open Graph Description: Similar to #3943, this PR caches the output of codeql resolve languages, which contains the paths to the various extractors so that repeated calls to resolveLanguages() are idempotent. Additionally...

X Description: Similar to #3943, this PR caches the output of codeql resolve languages, which contains the paths to the various extractors so that repeated calls to resolveLanguages() are idempotent. Additionally...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:27f8894a-7f52-560c-4db4-805c4c456116
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB5BE:227D33:B3723A:F63C39:6A4C9065
html-safe-nonce17f79613d38e52183fb3d6889a6b9b72b5d842677c9e73a0aa47ff133ab61391
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUJFOjIyN0QzMzpCMzcyM0E6RjYzQzM5OjZBNEM5MDY1IiwidmlzaXRvcl9pZCI6IjMzMTUzNjIyNTM0NDQ1MTc5ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac45168e09dbe3a3900a0080f405b6055eefe7d60a7a89fb0253788ffbe934fb41
hovercard-subject-tagpull_request:3803480968
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/3950/commits
twitter:imagehttps://opengraph.githubassets.com/87162f386fe9cfc7244d859ada5f54f8bd45b4caa8f358680976dff98fc5d183/github/codeql-action/pull/3950
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/87162f386fe9cfc7244d859ada5f54f8bd45b4caa8f358680976dff98fc5d183/github/codeql-action/pull/3950
og:image:altSimilar to #3943, this PR caches the output of codeql resolve languages, which contains the paths to the various extractors so that repeated calls to resolveLanguages() are idempotent. Additionally...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemario-campos
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a2dede45637df6b92ddcfe2a557e67d4b5854ae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/3950/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3950%2Fcommits
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F3950%2Fcommits
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%2Fcommits&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/3950/commits
Reloadhttps://github.com/github/codeql-action/pull/3950/commits
Reloadhttps://github.com/github/codeql-action/pull/3950/commits
Please reload this pagehttps://github.com/github/codeql-action/pull/3950/commits
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 470 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 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
mario-camposhttps://github.com/mario-campos
mainhttps://github.com/github/codeql-action/tree/main
mario-campos/cache-cli-resolve-langshttps://github.com/github/codeql-action/tree/mario-campos/cache-cli-resolve-langs
Conversationhttps://github.com/github/codeql-action/pull/3950
Commits26 (26)https://github.com/github/codeql-action/pull/3950/commits
Checkshttps://github.com/github/codeql-action/pull/3950/checks
Files changedhttps://github.com/github/codeql-action/pull/3950/files
Cache CLI extractor paths across Actions stepshttps://github.com/github/codeql-action/pull/3950/commits#top
mario-camposhttps://github.com/mario-campos
mainhttps://github.com/github/codeql-action/tree/main
mario-campos/cache-cli-resolve-langshttps://github.com/github/codeql-action/tree/mario-campos/cache-cli-resolve-langs
Cache the output of `codeql resolve languages`https://github.com/github/codeql-action/pull/3950/commits/311292c28fcad4d4c3efb0b85ec3f23b2785a19f
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
311292chttps://github.com/github/codeql-action/pull/3950/commits/311292c28fcad4d4c3efb0b85ec3f23b2785a19f
https://github.com/github/codeql-action/tree/311292c28fcad4d4c3efb0b85ec3f23b2785a19f
Reimplement `resolveExtractor()` as wrapper over `resolveLanguages()`https://github.com/github/codeql-action/pull/3950/commits/6010f85d81311aee3e4d090b444e82855e90740b
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
6010f85https://github.com/github/codeql-action/pull/3950/commits/6010f85d81311aee3e4d090b444e82855e90740b
https://github.com/github/codeql-action/tree/6010f85d81311aee3e4d090b444e82855e90740b
Validate numbers, objects, and undefinables in the `json` modulehttps://github.com/github/codeql-action/pull/3950/commits/445107e23af9b5ae4b0e0d68e638eaf4da59d014
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
445107ehttps://github.com/github/codeql-action/pull/3950/commits/445107e23af9b5ae4b0e0d68e638eaf4da59d014
https://github.com/github/codeql-action/tree/445107e23af9b5ae4b0e0d68e638eaf4da59d014
Refactor `isVersionInfo()`` to use `json` modulehttps://github.com/github/codeql-action/pull/3950/commits/587fcb33c738fe65109c7fbcda01b693e9b9614a
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
587fcb3https://github.com/github/codeql-action/pull/3950/commits/587fcb33c738fe65109c7fbcda01b693e9b9614a
https://github.com/github/codeql-action/tree/587fcb33c738fe65109c7fbcda01b693e9b9614a
Refactor CLI executions into helper functionshttps://github.com/github/codeql-action/pull/3950/commits/889ae42672fcfc9f2570842bca674d6989c02f69
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
889ae42https://github.com/github/codeql-action/pull/3950/commits/889ae42672fcfc9f2570842bca674d6989c02f69
https://github.com/github/codeql-action/tree/889ae42672fcfc9f2570842bca674d6989c02f69
Refactor CLI JSON handling into a dedicated `runCliJson` functionhttps://github.com/github/codeql-action/pull/3950/commits/dc8e1e9aa030ff727aca68fda116800bf38b8eb3
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
dc8e1e9https://github.com/github/codeql-action/pull/3950/commits/dc8e1e9aa030ff727aca68fda116800bf38b8eb3
https://github.com/github/codeql-action/tree/dc8e1e9aa030ff727aca68fda116800bf38b8eb3
Refactor CLI caching with in-memory and file storagehttps://github.com/github/codeql-action/pull/3950/commits/a602287f735f45c60ac6df611e76a9e54a28347b
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
a602287https://github.com/github/codeql-action/pull/3950/commits/a602287f735f45c60ac6df611e76a9e54a28347b
https://github.com/github/codeql-action/tree/a602287f735f45c60ac6df611e76a9e54a28347b
Rebased onto main; fixups were neededhttps://github.com/github/codeql-action/pull/3950/commits/b18df17ee7608277c4d8ac617d62bd3878135de1
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
b18df17https://github.com/github/codeql-action/pull/3950/commits/b18df17ee7608277c4d8ac617d62bd3878135de1
https://github.com/github/codeql-action/tree/b18df17ee7608277c4d8ac617d62bd3878135de1
Add error handling for undefined extractors in language resolutionhttps://github.com/github/codeql-action/pull/3950/commits/553eef0d3fb88d9d9478e100a556cf047da13c07
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
553eef0https://github.com/github/codeql-action/pull/3950/commits/553eef0d3fb88d9d9478e100a556cf047da13c07
https://github.com/github/codeql-action/tree/553eef0d3fb88d9d9478e100a556cf047da13c07
Refactor `resolveLanguages()` to cache output according to CLI feature supporthttps://github.com/github/codeql-action/pull/3950/commits/c8e32e423db7a4baa7df978f7fff4c7773fdd378
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
c8e32e4https://github.com/github/codeql-action/pull/3950/commits/c8e32e423db7a4baa7df978f7fff4c7773fdd378
https://github.com/github/codeql-action/tree/c8e32e423db7a4baa7df978f7fff4c7773fdd378
Rename `optional` and `undefinable` functions for clarity; update related schemas to use `optionalOrNull`https://github.com/github/codeql-action/pull/3950/commits/defcf1bff6e0bd3d59991cbe4c608eeb1eedb41e
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
defcf1bhttps://github.com/github/codeql-action/pull/3950/commits/defcf1bff6e0bd3d59991cbe4c608eeb1eedb41e
https://github.com/github/codeql-action/tree/defcf1bff6e0bd3d59991cbe4c608eeb1eedb41e
Improve documentation for cache file and command keys in CLIhttps://github.com/github/codeql-action/pull/3950/commits/420c97eadde1b53f6fb590ecf837b21d11a01cd8
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
420c97ehttps://github.com/github/codeql-action/pull/3950/commits/420c97eadde1b53f6fb590ecf837b21d11a01cd8
https://github.com/github/codeql-action/tree/420c97eadde1b53f6fb590ecf837b21d11a01cd8
Replace `string` with `CommandCacheKey` for better type safetyhttps://github.com/github/codeql-action/pull/3950/commits/dd7ff302052d32dd1ffd25528cf0ac83e33d755f
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
dd7ff30https://github.com/github/codeql-action/pull/3950/commits/dd7ff302052d32dd1ffd25528cf0ac83e33d755f
https://github.com/github/codeql-action/tree/dd7ff302052d32dd1ffd25528cf0ac83e33d755f
Rename `CacheEntry` to `CommandCacheEntry` for consistencyhttps://github.com/github/codeql-action/pull/3950/commits/126166c21209f7c4537f0bd342c2b5907460e656
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
126166chttps://github.com/github/codeql-action/pull/3950/commits/126166c21209f7c4537f0bd342c2b5907460e656
https://github.com/github/codeql-action/tree/126166c21209f7c4537f0bd342c2b5907460e656
Refactor cache file reading to check for existence before attempting to readhttps://github.com/github/codeql-action/pull/3950/commits/94b12602ac7a37849b55dd401b0c1207f3438564
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
94b1260https://github.com/github/codeql-action/pull/3950/commits/94b12602ac7a37849b55dd401b0c1207f3438564
https://github.com/github/codeql-action/tree/94b12602ac7a37849b55dd401b0c1207f3438564
Add logging for command cache file read/write failureshttps://github.com/github/codeql-action/pull/3950/commits/d1bd5ec7b0d24e2aece3fc1fb9d8761318d83943
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
d1bd5echttps://github.com/github/codeql-action/pull/3950/commits/d1bd5ec7b0d24e2aece3fc1fb9d8761318d83943
https://github.com/github/codeql-action/tree/d1bd5ec7b0d24e2aece3fc1fb9d8761318d83943
Remove duplicate key check in cacheCommandOutput and related testshttps://github.com/github/codeql-action/pull/3950/commits/805b59092e7efaab37053dc1898e5fb1a435636f
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
805b590https://github.com/github/codeql-action/pull/3950/commits/805b59092e7efaab37053dc1898e5fb1a435636f
https://github.com/github/codeql-action/tree/805b59092e7efaab37053dc1898e5fb1a435636f
Front-load caching and rear-load saving to diskhttps://github.com/github/codeql-action/pull/3950/commits/895ffe7eb5dc00f0e37304117af54df325cf26ee
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
895ffe7https://github.com/github/codeql-action/pull/3950/commits/895ffe7eb5dc00f0e37304117af54df325cf26ee
https://github.com/github/codeql-action/tree/895ffe7eb5dc00f0e37304117af54df325cf26ee
Refactor cache storage to use cacheCommandOutput for consistencyhttps://github.com/github/codeql-action/pull/3950/commits/649bababe740aae717fbfd30fc0b4af8f7676a17
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
649babahttps://github.com/github/codeql-action/pull/3950/commits/649bababe740aae717fbfd30fc0b4af8f7676a17
https://github.com/github/codeql-action/tree/649bababe740aae717fbfd30fc0b4af8f7676a17
Add warning log for invalid data in command cache retrievalhttps://github.com/github/codeql-action/pull/3950/commits/b3c7aa7372bb8c2a98069821038d3ed34bd4d90f
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
b3c7aa7https://github.com/github/codeql-action/pull/3950/commits/b3c7aa7372bb8c2a98069821038d3ed34bd4d90f
https://github.com/github/codeql-action/tree/b3c7aa7372bb8c2a98069821038d3ed34bd4d90f
Move `cache.ts` to `cli/output-cache.ts`https://github.com/github/codeql-action/pull/3950/commits/41965b0e7be3045e3ddf8d5c7c30fe3f19a1480b
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
41965b0https://github.com/github/codeql-action/pull/3950/commits/41965b0e7be3045e3ddf8d5c7c30fe3f19a1480b
https://github.com/github/codeql-action/tree/41965b0e7be3045e3ddf8d5c7c30fe3f19a1480b
Refactor `CommandCacheKey` as a string unionhttps://github.com/github/codeql-action/pull/3950/commits/c2f43799c5aca5fdaebaed44e5f4ef63d80a6987
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
c2f4379https://github.com/github/codeql-action/pull/3950/commits/c2f43799c5aca5fdaebaed44e5f4ef63d80a6987
https://github.com/github/codeql-action/tree/c2f43799c5aca5fdaebaed44e5f4ef63d80a6987
Move output type validators to `output-cache.ts` modulehttps://github.com/github/codeql-action/pull/3950/commits/0d698171d350266bf2b7dafa80e83d2479fa79a3
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
0d69817https://github.com/github/codeql-action/pull/3950/commits/0d698171d350266bf2b7dafa80e83d2479fa79a3
https://github.com/github/codeql-action/tree/0d698171d350266bf2b7dafa80e83d2479fa79a3
Switch `CommandCacheKey` back to an `enum`https://github.com/github/codeql-action/pull/3950/commits/da149812f1432ca8dd89eb2c43d4acbbdb5f486c
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
da14981https://github.com/github/codeql-action/pull/3950/commits/da149812f1432ca8dd89eb2c43d4acbbdb5f486c
https://github.com/github/codeql-action/tree/da149812f1432ca8dd89eb2c43d4acbbdb5f486c
Revert JSON module changeshttps://github.com/github/codeql-action/pull/3950/commits/bba0d6c67cb441000dde909b0cc8ad52e67561d5
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
bba0d6chttps://github.com/github/codeql-action/pull/3950/commits/bba0d6c67cb441000dde909b0cc8ad52e67561d5
https://github.com/github/codeql-action/tree/bba0d6c67cb441000dde909b0cc8ad52e67561d5
Revert change to `resolveExtractor`https://github.com/github/codeql-action/pull/3950/commits/7f4f27e7e62ffbdfee14c96f3c882d09d8a62e64
https://github.com/mario-campos
mario-camposhttps://github.com/github/codeql-action/commits?author=mario-campos
7f4f27ehttps://github.com/github/codeql-action/pull/3950/commits/7f4f27e7e62ffbdfee14c96f3c882d09d8a62e64
https://github.com/github/codeql-action/tree/7f4f27e7e62ffbdfee14c96f3c882d09d8a62e64
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.