Commit 540dd8e
committed
fix(actions/lib): drop @socketsecurity/lib-stable imports — runs pre-setup-node
ERR_MODULE_NOT_FOUND on every fleet CI run:
Cannot find package '@socketsecurity/lib-stable' imported from
/home/runner/work/_actions/SocketDev/socket-registry/<sha>/.github/actions/lib/install-tool.mjs
Both .github/actions/lib/install-tool.mjs and .github/actions/lib/semver.mjs
imported getDefaultLogger from @socketsecurity/lib-stable/logger,
but they run during the SETUP action's pre-setup-node phase, when
node_modules hasn't been populated yet. The header comments in the
files already document this constraint — the imports were
inconsistent with the file's own contract.
Replace with a tiny inline logger that exposes only the .fail
method these scripts use (single-line console.error wrapper).
Annotated with oxlint-disable-next-line socket/no-console-prefer-logger
explaining the bootstrap-step constraint.
This was the actual root cause of the post-pnpm-bump CI red:
every fleet runner's setup-and-install failed at the
install-tool.mjs invocation, never got to install pnpm 11.1.3,
and downstream steps complained about the runner's preinstalled
pnpm 11.0.6.
Pre-commit bypassed (SOCKET_API_KEY 401, user-authorized via
'Allow lint bypass').1 parent d61dee9 commit 540dd8e
2 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
0 commit comments