René's URL Explorer Experiment


Title: Ensure uniqueness of overlay-base database cache keys by kaspersv · Pull Request #3232 · github/codeql-action · GitHub

Open Graph Title: Ensure uniqueness of overlay-base database cache keys by kaspersv · Pull Request #3232 · github/codeql-action

X Title: Ensure uniqueness of overlay-base database cache keys by kaspersv · Pull Request #3232 · github/codeql-action

Description: This PR adds a workflow run id and workflow attempt id to the overlay base database cache key postfix to ensure uniqueness of the cache keys. The cache key prefix used for restoring overlay-base databases remains unchanged. The motivation for the change is that currently if a successful overlay analysis run on the default branch is retried or a repo contains a scheduled CodeQL workflow on the default branch that runs twice without any changes on the default branch in between, then uploading of the overlay-base database will fail due to a cache key collision. The first commit which adds a unit test for overlay-base cache keys was cherry-picked from #3158. Risk assessment For internal use only. Please select the risk level of this change: Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only. This individual change is not under feature flag, but it only affects overlay analysis, which is under feature flag and can be disabled in case of unexpected negative impact. Which use cases does this change impact? Advanced setup - Impacts users who have custom workflows. Default setup - Impacts users who use default setup. Code Scanning - Impacts Code Scanning (i.e. analysis-kinds: code-scanning). How did/will you validate this change? Test repository - This change will be tested on a test repository before merging. Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files). If something goes wrong after this change is released, what are the mitigation and rollback strategies? Feature flags - All new or changed code paths can be fully disabled with corresponding feature flags. How will you know if something goes wrong after this change is released? Telemetry - I rely on existing telemetry or have made changes to the telemetry. Dashboards - I will watch relevant dashboards for issues after the release. Consider whether this requires this change to be released at a particular time rather than as part of a regular release. Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Consider adding a changelog entry for this change. Confirm the readme and docs have been updated if necessary.

Open Graph Description: This PR adds a workflow run id and workflow attempt id to the overlay base database cache key postfix to ensure uniqueness of the cache keys. The cache key prefix used for restoring overlay-base da...

X Description: This PR adds a workflow run id and workflow attempt id to the overlay base database cache key postfix to ensure uniqueness of the cache keys. The cache key prefix used for restoring overlay-base da...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:742aba11-2518-0b6a-6d3a-2bb7efac852b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1A0:3C7D61:EE899E:1443AA2:6A5564F9
html-safe-nonce3010f80fab9719e8e47075c7056c4110dca3ecf2057945acf1c2248ea00a249e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUEwOjNDN0Q2MTpFRTg5OUU6MTQ0M0FBMjo2QTU1NjRGOSIsInZpc2l0b3JfaWQiOiIzNjgzODE4OTc5NzI0NzUxMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac316a93bf5d0437e64f94aff4d6bd68737a4e496d9efb56571e1975b930af6b8d
hovercard-subject-tagpull_request:2943763746
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/3232/files
twitter:imagehttps://avatars.githubusercontent.com/u/4310256?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4310256?s=400&v=4
og:image:altThis PR adds a workflow run id and workflow attempt id to the overlay base database cache key postfix to ensure uniqueness of the cache keys. The cache key prefix used for restoring overlay-base da...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
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
release8201d0b7bc32164c4662de52242e463a356df543
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/3232/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3232%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%2F3232%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/3232/files
Reloadhttps://github.com/github/codeql-action/pull/3232/files
Reloadhttps://github.com/github/codeql-action/pull/3232/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3232/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
kaspersvhttps://github.com/kaspersv
mainhttps://github.com/github/codeql-action/tree/main
kaspersv/unique-overlay-base-keyshttps://github.com/github/codeql-action/tree/kaspersv/unique-overlay-base-keys
Conversation 7 https://github.com/github/codeql-action/pull/3232
Findings https://github.com/github/codeql-action/pull/3232/findings
Commits 4 https://github.com/github/codeql-action/pull/3232/commits
Checks 243 https://github.com/github/codeql-action/pull/3232/checks
Files changed 3 https://github.com/github/codeql-action/pull/3232/files
Ensure uniqueness of overlay-base database cache keys https://github.com/github/codeql-action/pull/3232/files#top
Show all changes 4 commits https://github.com/github/codeql-action/pull/3232/files
c4b7372 Add overlay-base database cache key tests cklin Sep 24, 2025 https://github.com/github/codeql-action/pull/3232/commits/c4b73722ba8ba8ec348bbde3983582e97cd353ff
b4ce335 Ensure uniqueness of overlay-base database cache keys kaspersv Oct 24, 2025 https://github.com/github/codeql-action/pull/3232/commits/b4ce3352864e24176b5a5926124bb6adfc45b003
cbcae45 Reorder components of overlay-base cache key postfix kaspersv Oct 24, 2025 https://github.com/github/codeql-action/pull/3232/commits/cbcae45fffacea44eec0222c515b06a260497ab4
66759e5 Improve error handling for overlay-base cache key creation kaspersv Oct 24, 2025 https://github.com/github/codeql-action/pull/3232/commits/66759e57b29d9322a4b80dadf4ab043a9531b4cd
Clear filters https://github.com/github/codeql-action/pull/3232/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3232/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3232/files
analyze-action.js https://github.com/github/codeql-action/pull/3232/files#diff-4926d6bcb92a4de805ceb8d280f31c24cffa2445b3a36cc658e5032a0910ed15
overlay-database-utils.test.ts https://github.com/github/codeql-action/pull/3232/files#diff-7ba28e43c83720443ea103cccf1cef54a4bf7bbc077785932346978a7dc070c9
overlay-database-utils.ts https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action.jshttps://github.com/github/codeql-action/pull/3232/files#diff-4926d6bcb92a4de805ceb8d280f31c24cffa2445b3a36cc658e5032a0910ed15
View file https://github.com/github/codeql-action/blob/66759e57b29d9322a4b80dadf4ab043a9531b4cd/lib/analyze-action.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/3232/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
src/overlay-database-utils.test.tshttps://github.com/github/codeql-action/pull/3232/files#diff-7ba28e43c83720443ea103cccf1cef54a4bf7bbc077785932346978a7dc070c9
View file https://github.com/github/codeql-action/blob/66759e57b29d9322a4b80dadf4ab043a9531b4cd/src/overlay-database-utils.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3232/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3232/files#diff-7ba28e43c83720443ea103cccf1cef54a4bf7bbc077785932346978a7dc070c9
https://github.com/github/codeql-action/pull/3232/files#diff-7ba28e43c83720443ea103cccf1cef54a4bf7bbc077785932346978a7dc070c9
https://github.com/github/codeql-action/pull/3232/files#diff-7ba28e43c83720443ea103cccf1cef54a4bf7bbc077785932346978a7dc070c9
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
src/overlay-database-utils.tshttps://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
View file https://github.com/github/codeql-action/blob/66759e57b29d9322a4b80dadf4ab043a9531b4cd/src/overlay-database-utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3232/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
mbghttps://github.com/mbg
Oct 24, 2025https://github.com/github/codeql-action/pull/3232/files#r2461087639
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql-action/pull/3232/files
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
https://github.com/github/codeql-action/pull/3232/files#diff-047b3b838f0e06ecd3c8387cd3f1fea6b4e16c9ce1f34073e7cef405b9e8526a
Please reload this pagehttps://github.com/github/codeql-action/pull/3232/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.