| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR pins @actions/tool-cache to version 3 in workflow files to prevent failures caused by v4's migration to ESM modules, which is incompatible with the CommonJS require() calls used in github-script actions. This follows the same pattern as the previous fix for @actions/github v9 (PR #3441).
Changes:
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pr-checks/checks/bundle-toolcache.yml | Template file updated to pin @actions/tool-cache@3 in the npm install command |
| pr-checks/checks/bundle-from-toolcache.yml | Template file updated to pin @actions/tool-cache@3 in the npm install command |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
It seems that v4 of @actions/tool-cache now uses ESM modules (similarly to v9 of @actions/github) which leads to failures like this in some of our CI checks, where we install @actions/tool-cache for use with github-script, but don't pin a particular version.
This PR pins v3 in those workflows to unblock these workflows.
Alternatively, we could switch to using import in the scripts, which is supported by github-script.
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
CI failures.
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist