René's URL Explorer Experiment


Title: Generate job UUID in `start-proxy` action by mbg · Pull Request #4049 · github/codeql-action · GitHub

Open Graph Title: Generate job UUID in `start-proxy` action by mbg · Pull Request #4049 · github/codeql-action

X Title: Generate job UUID in `start-proxy` action by mbg · Pull Request #4049 · github/codeql-action

Description: The start-proxy action precedes the init action in Default Setup, but a UUID for the analysis is only generated in the init action. That means that telemetry from the start-proxy step is not easy to associate with subsequent steps in the workflow. This PR refactors the existing code that's duplicated across init and setup-codeql into a function, allows it to retrieve the existing job UUID from the environment, adds tests, and then uses the new function in start-proxy. This ensures that telemetry from start-proxy includes a unique identifier and the same one is used for the rest of the workflow, while workflows that don't use start-proxy also still generate one in init. 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. Which use cases does this change impact? Workflow types: Advanced setup - Impacts users who have custom CodeQL workflows. Managed - Impacts users with dynamic workflows (Default Setup, Code Quality, ...). Products: Code Scanning - The changes impact analyses when analysis-kinds: code-scanning. Code Quality - The changes impact analyses when analysis-kinds: code-quality. Other first-party - The changes impact other first-party analyses. Environments: Dotcom - Impacts CodeQL workflows on github.com and/or GitHub Enterprise Cloud with Data Residency. GHES - Impacts CodeQL workflows on GitHub Enterprise Server. How did/will you validate this change? Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files). End-to-end tests - I am depending on PR checks (i.e. tests in pr-checks). If something goes wrong after this change is released, what are the mitigation and rollback strategies? Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix. 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. Alerts - New or existing monitors will trip if something goes wrong with this change. Are there any special considerations for merging or releasing this change? No special considerations - This change can be merged at any time. 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: The start-proxy action precedes the init action in Default Setup, but a UUID for the analysis is only generated in the init action. That means that telemetry from the start-proxy step is not easy t...

X Description: The start-proxy action precedes the init action in Default Setup, but a UUID for the analysis is only generated in the init action. That means that telemetry from the start-proxy step is not easy t...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:99930993-5b7f-5afb-12d8-e08d3024ca44
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8062:C63F3:91F0A6:C1F81B:6AED2D37
html-safe-nonce22fc6e1b19367df618a22c8699a12c29ab23708678caa6fd3457d080e0070c7a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDYyOkM2M0YzOjkxRjBBNjpDMUY4MUI6NkFFRDJEMzciLCJ2aXNpdG9yX2lkIjoiODcwNjI3Njk0NzA4MDg1MDc0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfd79f5ca7ab4ecc647acd9c66769a9839ad964bfd2d7e737bd2939a452f0d4d3
hovercard-subject-tagpull_request:4153909977
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/4049/files
twitter:imagehttps://avatars.githubusercontent.com/u/278086?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/278086?s=400&v=4
og:image:altThe start-proxy action precedes the init action in Default Setup, but a UUID for the analysis is only generated in the init action. That means that telemetry from the start-proxy step is not easy t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
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
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/4049/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F4049%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F4049%2Ffiles
Sign uphttps://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/4049/files
Reloadhttps://github.com/github/codeql-action/pull/4049/files
Reloadhttps://github.com/github/codeql-action/pull/4049/files
githubhttps://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Codehttps://github.com/github/codeql-action
Issues165 (165)https://github.com/github/codeql-action/issues
Pull requests41 (41)https://github.com/github/codeql-action/pulls
Actionshttps://github.com/github/codeql-action/actions
Security and quality2 (2)https://github.com/github/codeql-action/security
Insightshttps://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
mbghttps://github.com/mbg
mainhttps://github.com/github/codeql-action/tree/main
mbg/start-proxy/job-uuidhttps://github.com/github/codeql-action/tree/mbg/start-proxy/job-uuid
Conversation 13 https://github.com/github/codeql-action/pull/4049
Commits 19 https://github.com/github/codeql-action/pull/4049/commits
Checks 221 https://github.com/github/codeql-action/pull/4049/checks
Files changed https://github.com/github/codeql-action/pull/4049/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4049/files
Generate job UUID in start-proxy action https://github.com/github/codeql-action/pull/4049/files#top
Show all changes 19 commits https://github.com/github/codeql-action/pull/4049/files
1f9caf0 Refactor `jobRunUuid` init into a function mbg Jul 28, 2026 https://github.com/github/codeql-action/pull/4049/commits/1f9caf0118e0ac28ca8795236cb9d8db9c5c4658
c7ae51b Make `ActionState` available and add test mbg Jul 28, 2026 https://github.com/github/codeql-action/pull/4049/commits/c7ae51bb2daea524f6967b00fec6cceaa7b607b5
049af32 Allow `getJobUUID` to retrieve the UUID from the environment mbg Jul 28, 2026 https://github.com/github/codeql-action/pull/4049/commits/049af32c592249a000289bd518b3592923901db3
766928d Call `getJobUUID` in `start-proxy` mbg Jul 28, 2026 https://github.com/github/codeql-action/pull/4049/commits/766928d055114dfca04d7ad722bbc9fe4b928c3e
e9831f7 Add `getRequiredInput` to `ActionsEnv` mbg Jul 24, 2026 https://github.com/github/codeql-action/pull/4049/commits/e9831f72a27e863fb32ccac5d65261114809b6fd
60834a0 Add `exportVariable` to `ActionsEnv` mbg Jul 24, 2026 https://github.com/github/codeql-action/pull/4049/commits/60834a0cd9645a12daf4e2e76f667afb0f4cbed2
e28cbac Test that `getJobUUID` calls `exportVariable` mbg Jul 28, 2026 https://github.com/github/codeql-action/pull/4049/commits/e28cbacfa115612a23d42a9425bfa0aa072443df
94a12eb Add a test for invalid values mbg Jul 28, 2026 https://github.com/github/codeql-action/pull/4049/commits/94a12eb6f6fa716ef39d1cd9c61231f08577b870
2e25107 Use `getEnv()` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/2e251072b0a905f36699df95f6deabbff6a6ec5a
42a3b94 Add `CODEQL_ACTION_` prefix to `JOB_RUN_UUID` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/42a3b947902ef5aef0cda3594c9e0cb60f8f4820
3ca82bb Change `withActions` to only allow mutations mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/3ca82bb259b52fe4d0f27055fa58f0fb99694b80
30c33c9 Make results of function call available to delayed checks mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/30c33c9286fa4a7c5325301b5a2aa0c5b67a51ec
3673750 Add `Env`-backed `ActionsEnv` implementation for tests mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/36737508ece41f7da5ed9862108928b78f5c24ff
d2f5cbb Add `get` method to `ReadOnlyEnv` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/d2f5cbbe919141b077e54396de7bb0c31da73912
0cebd1d Add `hasEnv` delayed assertion and use for `getJobUUID` test mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/0cebd1d28d761cf2fceb2a3a9ed79dff79ea5a8c
b411bbc Move `getJobUUID` call into `runInActions` for `init` and `setup-codeql` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/b411bbcd4ad96437e66f359abc5b628477549c83
ba46ff7 Add `transformTelemetryError` option to `Action` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/ba46ff760e2acb42dc881f443ad2bb3cd9de9d28
8e6fdff Use `runInActions` for `start-proxy` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/8e6fdffc3205654e6d9f7e9a5976eaf55dee895b
d57c3ff Add tests for `runInActions` mbg Jul 29, 2026 https://github.com/github/codeql-action/pull/4049/commits/d57c3ffcba10414c396e4bc89f526c3875e18a0d
Clear filters https://github.com/github/codeql-action/pull/4049/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4049/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4049/files
__job-run-uuid-sarif.yml https://github.com/github/codeql-action/pull/4049/files#diff-6e4971c19beb000c250bdcd463084b805c2dc0ac197b18ad1211a1acbf9eecbd
entry-points.js https://github.com/github/codeql-action/pull/4049/files#diff-73697317a7dd14441dcfb24bc586f637ae2b815b5e503a05a81816be74fcd815
job-run-uuid-sarif.yml https://github.com/github/codeql-action/pull/4049/files#diff-674d0094b7acbbf53514ab03b264900f8eba3e44ac1ba715990165179aa33e7e
action-common.test.ts https://github.com/github/codeql-action/pull/4049/files#diff-b50d88553fcddfb7a0c5e204e89af6d4013340331deadeaa6efce40ab587825a
action-common.ts https://github.com/github/codeql-action/pull/4049/files#diff-ae4bdfbe2de7fb868f4c7100e281e16a6c7acda72bc8315c860602bd12f2a2d0
actions-util.ts https://github.com/github/codeql-action/pull/4049/files#diff-272a83a2815879238f61d8c6a4358a34cf98138946d7e7e950851282d8ca0b7d
inputs.test.ts https://github.com/github/codeql-action/pull/4049/files#diff-c036e910f470aed4da80582096950ac96db9bc17ffe591465d1dd87f9369f2df
environment.ts https://github.com/github/codeql-action/pull/4049/files#diff-c0b3266a3c4f1c4857b2a8bc79c4b463560bb7da30deb7c2b6e852f705723827
init-action.ts https://github.com/github/codeql-action/pull/4049/files#diff-87bf9e0a2a9244ba1f26eb01d404deaccbc9580479d2e2530a4ff2fd5bd91565
setup-codeql-action.ts https://github.com/github/codeql-action/pull/4049/files#diff-03d2b2bd0e1c4d4ed0fd6ddac8033710b48fb01370983c27b17b3cab5ea0a8ba
start-proxy-action.ts https://github.com/github/codeql-action/pull/4049/files#diff-cd9fa9ce5ae4ab6ca00904ff3fe18f012544499a88d8d55659b17632b8da7d8a
status-report.test.ts https://github.com/github/codeql-action/pull/4049/files#diff-44a2bef6bc136c39f466778dd810cd95fa5015d3bf9b0b6afdc8f94a13b75667
status-report.ts https://github.com/github/codeql-action/pull/4049/files#diff-3abb83ffc5df1d349d32759ed4876c4c1a50b63d3187ec177d67cb76f0bd50e7
testing-utils.ts https://github.com/github/codeql-action/pull/4049/files#diff-b5e75f890eca9e7fbfff472427b39ce0f5628833109b50e7b2d165729bd8c124
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
.github/workflows/__job-run-uuid-sarif.ymlhttps://github.com/github/codeql-action/pull/4049/files#diff-6e4971c19beb000c250bdcd463084b805c2dc0ac197b18ad1211a1acbf9eecbd
View file https://github.com/github/codeql-action/blob/d57c3ffcba10414c396e4bc89f526c3875e18a0d/.github/workflows/__job-run-uuid-sarif.yml
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/4049/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/entry-points.jshttps://github.com/github/codeql-action/pull/4049/files#diff-73697317a7dd14441dcfb24bc586f637ae2b815b5e503a05a81816be74fcd815
View file https://github.com/github/codeql-action/blob/d57c3ffcba10414c396e4bc89f526c3875e18a0d/lib/entry-points.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/4049/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
pr-checks/checks/job-run-uuid-sarif.ymlhttps://github.com/github/codeql-action/pull/4049/files#diff-674d0094b7acbbf53514ab03b264900f8eba3e44ac1ba715990165179aa33e7e
View file https://github.com/github/codeql-action/blob/d57c3ffcba10414c396e4bc89f526c3875e18a0d/pr-checks/checks/job-run-uuid-sarif.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/4049/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/4049/files#diff-674d0094b7acbbf53514ab03b264900f8eba3e44ac1ba715990165179aa33e7e
https://github.com/github/codeql-action/pull/4049/files#diff-674d0094b7acbbf53514ab03b264900f8eba3e44ac1ba715990165179aa33e7e
Please reload this pagehttps://github.com/github/codeql-action/pull/4049/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4049/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.