Henry Mercer
4a0b22ec25
Delete unused CodeQL bundles from the toolcache before downloading
...
When we download a bundle the toolcache often already holds a different one that the job will not use, and on GitHub-hosted runners it shares a filesystem with the workspace, so it takes space away from the analysis. Empty the toolcache before downloading, which also frees space for the archive during extraction, and which is safe because getting as far as a download means the tools were not resolved from the toolcache. Skip this once a step has obtained the tools, since a later step may run a path it was given, and gate it on the runner being GitHub-hosted and on a feature flag that is off by default.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-04 10:12:10 +01:00
Henry Mercer
762a5ed7f7
Add a helper to delete the CodeQL tools from the toolcache
...
`deleteToolcacheBundles` removes `$RUNNER_TOOL_CACHE/CodeQL` and reports which versions were there. It refuses to follow a symlinked CodeQL directory so that it can only ever delete paths that are really inside the toolcache, and reports failures rather than throwing. Not called yet.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-04 10:12:10 +01:00
Henry Mercer
ceb85f25b5
Distinguish GitHub-hosted runners from ones that look hosted
...
`isHostedRunner` infers hostedness from the runner name and the toolcache path, so it also matches self-hosted runners that are configured to resemble hosted ones. Rename it to `looksLikeHostedRunner` so callers can see they are getting a heuristic, and add `isGitHubHostedRunner`, which reads the `RUNNER_ENVIRONMENT` value the Actions service reports. The existing callers keep the heuristic, so there is no behaviour change.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-04 10:12:09 +01:00
Michael B. Gale
25da1b1495
Merge branch 'main' into dependabot/npm_and_yarn/npm-minor-21ac56865f
2026-09-03 17:00:00 +01:00
Paolo Tranquilli
4cccb3aa86
Merge pull request #4072 from github/redsun82-linux-arm64-support
...
Add support for Linux Arm64 runners
2026-09-03 13:58:15 +00:00
github-actions[bot]
b724a86493
Rebuild
2026-09-02 17:56:48 +00:00
Mario Campos
a0c73122a6
Merge pull request #4096 from github/mario-campos/use-json-module
...
Use `json` module for JSON validation in `output-cache`
2026-09-01 15:17:48 +00:00
Henry Mercer
0963041ab4
Merge pull request #4090 from github/dependabot/npm_and_yarn/octokit/plugin-paginate-rest-15.0.0
...
Bump @octokit/plugin-paginate-rest from 14.0.0 to 15.0.0
2026-08-27 10:45:55 +00:00
github-actions[bot]
1a8ddd7325
Rebuild
2026-08-27 10:32:49 +00:00
Paolo Tranquilli
6441b26a49
Merge remote-tracking branch 'origin/main' into redsun82-linux-arm64-support
2026-08-27 10:09:22 +02:00
github-actions[bot]
d75af13705
Rebuild
2026-08-26 18:03:17 +00:00
Henry Mercer
4d40c93072
Merge pull request #4108 from github/mergeback/v4.37.9-to-main-cdf488f5
...
Mergeback v4.37.9 refs/heads/releases/v4 into main
2026-08-26 17:19:52 +00:00
Henry Mercer
3e93618b99
Merge pull request #4105 from github/henrymercer/tools-download-telemetry
...
Improve CodeQL tools download time telemetry
2026-08-26 17:01:23 +00:00
github-actions[bot]
f37565646f
Rebuild
2026-08-26 14:41:38 +00:00
github-actions[bot]
adcdf4a70d
Update default bundle to codeql-bundle-v2.26.4
2026-08-26 08:23:20 +00:00
Henry Mercer
9d89e2d1d6
Rebuild
...
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
Copilot-Session: 628ce334-991a-4578-9c1b-93d2e96bbddb
2026-08-24 18:32:11 +01:00
Paolo Tranquilli
97b7459e09
Merge remote-tracking branch 'origin/main' into redsun82-linux-arm64-support
2026-08-21 17:43:09 +02:00
Henry Mercer
486fec2a3e
Merge pull request #4099 from github/update-supported-enterprise-server-versions
...
Update supported GitHub Enterprise Server versions
2026-08-21 12:54:32 +00:00
github-actions[bot]
4605e03a74
Rebuild
2026-08-21 12:26:00 +00:00
github-actions[bot]
f9d9f07d37
Update supported GitHub Enterprise Server versions
2026-08-19 00:11:43 +00:00
Henry Mercer
1aef003397
Address review feedback on overlay disk flags
...
Document each minimum disk feature flag individually and replace the tuple list with an explicit feature-to-threshold mapping.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-08-18 12:09:33 +01:00
Henry Mercer
508b83bc41
Merge main into overlay minimum disk feature branch
...
Resolve the overlap with the separately shipped promotion of the overlay resource checks while preserving the feature-flagged minimum disk thresholds.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-08-18 12:09:09 +01:00
Mario Campos
fcd8d74cda
Refactor output-caching functions to accept file path dependency
...
This makes it easier to test. Credit to @mbg.
2026-08-14 14:41:04 -05:00
Mario Campos
f3deecb42d
Refactor OutputCache with json module
2026-08-14 11:38:38 -05:00
Mario Campos
c8ba2d2a05
Refactor isVersionInfo with json module
2026-08-14 11:35:14 -05:00
Michael B. Gale
47fa622223
Make EACCES a ConfigurationError
2026-08-14 11:56:26 +01:00
Michael B. Gale
45693cc688
Refactor ENOSPC check into isDiskConfigurationError function
2026-08-14 11:53:32 +01:00
Mario Campos
93d793c5fe
Use json module for JSON validation in output-cache
2026-08-13 23:19:37 -05:00
Mario Campos
c2fd8f54d1
Merge pull request #4081 from github/mario-campos/version-cache-to-disk
...
Persist CodeQL version output to file rather than environment
2026-08-13 14:27:41 +00:00
Mario Campos
c56f48e9bd
Log unexpected conditions during caching CLI output
2026-08-13 09:14:00 -05:00
Mario Campos
aa0eadc572
Merge branch 'main' into mario-campos/version-cache-to-disk
...
# Conflicts:
# lib/entry-points.js
2026-08-13 09:02:15 -05:00
Mario Campos
43250d671a
Change cache key to string type to include CLI args
2026-08-13 08:59:09 -05:00
github-actions[bot]
053d41e61e
Rebuild
2026-08-13 13:30:41 +00:00
Mario Campos
2d49edbac6
Re-order env to be first argument for consistency
2026-08-13 08:13:49 -05:00
Michael B. Gale
be7a3dbb81
Merge pull request #4087 from github/dependabot/npm_and_yarn/npm-minor-0aa561e04e
...
Bump the npm-minor group across 1 directory with 8 updates
2026-08-13 10:17:02 +00:00
Michael B. Gale
9310334b11
Merge pull request #4086 from github/mbg/thread-action-state-to-codeql
...
Make a `Logger` available to `getCodeQLForCmd`
2026-08-13 10:03:46 +00:00
github-actions[bot]
b4d8a54218
Rebuild
2026-08-12 17:57:08 +00:00
Mario Campos
6c0d9018d4
Change OutputCache to use object for entries
...
This will ensure it works nicely with `JSON.stringify`. And, then we can validate the type before marshaling.
2026-08-12 12:01:20 -05:00
Mario Campos
337136ab8a
Rename CommandCacheRecord -> OutputCache
2026-08-12 11:29:11 -05:00
Mario Campos
33d70867d5
Pass environment explicitly to CLI caching functions
2026-08-12 11:24:37 -05:00
Michael B. Gale
38055a3c3c
Drop logger from databaseInitCluster in interface
2026-08-12 16:49:45 +01:00
Michael B. Gale
1f87aed5e6
Merge pull request #4085 from github/update-bundle/codeql-bundle-v2.26.3
...
Update default bundle to 2.26.3
2026-08-12 15:45:41 +00:00
Michael B. Gale
dc1b98ad1c
Make logger available to getCodeQLForCmd
2026-08-12 16:43:22 +01:00
github-actions[bot]
0e8a5d99f8
Update default bundle to codeql-bundle-v2.26.3
2026-08-12 15:30:15 +00:00
Mads Navntoft
54a084632e
Bump undici from ^6.24.0 to ^6.28.0
2026-08-12 12:32:22 +02:00
Mario Campos
40f80a8df0
Rename type to better match generic intention
2026-08-11 18:09:09 -05:00
Mario Campos
b222c3aaea
Generalize file cache data structure
2026-08-11 18:09:09 -05:00
Mario Campos
0a99875ae5
Move VersionInfo-related types to cli/output-cache.ts
...
This brings them out of the crowded all-purpose `util.ts` and into `cli/output-cache.ts` where they are exclusively used.
2026-08-11 15:55:15 -05:00
Mario Campos
1332611f51
Move cache-related util functions into dedicated module
2026-08-11 15:55:15 -05:00
Michael B. Gale
c16c0f3f28
Merge pull request #4083 from github/mbg/features/remove-overlayResourceChecksV2
...
Promote `OverlayAnalysisResourceChecksV2`
2026-08-11 16:15:32 +00:00