FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add `toolcache.ts` script for `bundle(-from)-toolcache` checks by mbg · Pull Request #4255 · github/codeql-action · GitHub

Repository navigation

Add toolcache.ts script for bundle(-from)-toolcache checks - #4255

Merged
mbg merged 8 commits into
mainfrom
mbg/npm-versions
Oct 22, 2026
Merged

mbg merged 8 commits into
mainfrom
mbg/npm-versions

Conversation

mbg commented Oct 20, 2026

Copy link
Copy Markdown
Member

This allows the script to be shared between the two workflows and ensures that we don't have a floating npm install step in these workflows.

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?

Environments:

  • Testing/None - This change does not impact any CodeQL workflows in production.

How did/will you validate this change?

  • 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?

  • Development/testing only - This change cannot cause any failures in production.

How will you know if something goes wrong after this change is released?

  • Other - Please provide details.

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.

github-actions Bot added the size/M Should be of average difficulty to review label Oct 20, 2026
mbg force-pushed the mbg/npm-versions branch 2 times, most recently from dbc9fda to a4f6fc0 Compare October 20, 2026 13:18
mbg force-pushed the mbg/npm-versions branch from 0c13bfa to 57804e9 Compare October 20, 2026 16:31
mbg marked this pull request as ready for review October 20, 2026 16:46
mbg requested a review from a team as a code owner October 20, 2026 16:46
Copilot AI max review requested due to automatic review settings October 20, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🟡 Changes recommended

The expected-count assertion can report success when fewer CodeQL versions are cached than requested.

1 open issue 2 files not reviewed What changed in this PR

Consolidates toolcache PR checks into a shared TypeScript utility using locked workspace dependencies.

Changes:

  • Adds commands to clear and inspect cached CodeQL versions.
  • Updates both check templates to invoke the utility.
  • Declares the tool-cache dependency in the workspace and lockfile.
File Description
pr-checks/​toolcache.ts Adds shared toolcache commands.
pr-checks/​package.json Declares the tool-cache dependency.
pr-checks/​checks/​bundle-toolcache.yml Uses the utility to clear and verify the cache.
pr-checks/​checks/​bundle-from-toolcache.yml Uses the utility to verify cached installations.
package-lock.json Records the workspace dependency.

Review effort: Max

Comment thread pr-checks/toolcache.ts Resolved
henrymercer previously approved these changes Oct 21, 2026
Comment thread pr-checks/toolcache.ts Resolved
Comment thread pr-checks/toolcache.ts Resolved
Comment thread pr-checks/toolcache.ts Resolved
mbg added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit d04fe60 Oct 22, 2026
226 checks passed
mbg deleted the mbg/npm-versions branch October 22, 2026 09:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Should be of average difficulty to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL