Skip to content

chore(deps): update the @actions packages to their ESM majors - #63

Merged
linyows merged 3 commits into
mainfrom
chore/deps
Nov 27, 2026
Merged

linyows merged 3 commits into
mainfrom
chore/deps

Conversation

@linyows

@linyows linyows commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

@actions/core 3, exec 3, cache 6 and tool-cache 4 are ESM only, which 108e07e held back because of the ncc build. ncc bundles them into the same CJS dist/index.js once tsconfig.json resolves modules as a bundler does (module: ESNext, moduleResolution: bundler). They depend on @actions/http-client 4, whose undici is past the advisories the 3.0.2 override was for, so that override is dropped.

minimatch is overridden to 10.2.6, not to 11, which is the only line that fixes GHSA-g3hv-75wg-m249. 11 has no matchOne, which @actions/glob 0.7.0, the latest, calls when @actions/cache collects its paths: with 11 the built action logged Cache save failed: TypeError: this.minimatch.matchOne is not a function and carried on without caching, so CI would not have caught it. npm audit still reports the advisory, three moderate entries for the one chain. It is a denial of service from an amplified pattern, and the only pattern glob is given here is the fixed path of the probe archive under RUNNER_TEMP.

TypeScript goes to 6.0.3, not 7, which has no JavaScript API for ncc's ts-loader to build with (Cannot read properties of undefined (reading 'fileExists')); 6 needs rootDir set and no longer takes moduleResolution: node. @types/node stays on 24, for the node24 runtime. biome (2.6.9, with its schema), ncc (0.45.0) and vitest (5.1.2) go to their latest.

npm run all passes. Run locally, the rebuilt action resolved the latest probe through the API, verified and extracted it, ran test/basic-http.yml against a local server, and, with the cache on, globbed the archive directory and built the cache archive, failing only at reserving it with no cache service outside Actions.

🤖 Generated with Claude Code

linyows and others added 3 commits November 28, 2026 07:29
Running probe check or probe fmt --check before a workflow took
install-only and a step for each command. before-run takes check and
fmt, runs them on each file of path or paths, and runs the workflows
only once every file has passed. fmt always runs with --check, since a
CI run that rewrote the file would pass without anyone seeing it, and
an unknown value is an error before probe runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check workflows with before-run before running them
@actions/core 3, exec 3, cache 6 and tool-cache 4 are ESM only, which
ncc bundles into the same CJS dist once tsconfig resolves modules as a
bundler does. They depend on @actions/http-client 4, whose undici is
past the advisories the 3.0.2 override was for, so it is dropped.

minimatch is overridden to 10.2.6 rather than 11, which fixes
GHSA-g3hv-75wg-m249: 11 has no matchOne, which @actions/glob 0.7.0, the
latest, calls when actions/cache collects its paths, and saving the
cache failed. npm audit still reports the advisory; the only pattern
glob is given here is the fixed path of the probe archive.

TypeScript is updated to 6.0.3 rather than 7, which has no JavaScript
API for ncc's ts-loader to build with; 6 needs rootDir set. @types/node
stays on 24 for the node24 runtime. biome, ncc and vitest are updated
to their latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linyows
linyows merged commit 244063a into main Nov 27, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant