From 0295b2ff8fe5d077ba2413c46430354468d9eb5d Mon Sep 17 00:00:00 2001 From: Wayland Date: Sat, 24 Oct 2026 17:42:43 +0200 Subject: [PATCH] ci(workflows): resolve Node from the manifest, not the runner image cache actions/setup-node defaults to check-latest: false, which satisfies a bare major from the runner image's tool cache and consults the version manifest only when the cache has no match. The pins were therefore cosmetic at patch level: the image's cached Node lags the security releases the pins exist to pick up. Resolving from the manifest costs one node download (~5s) when the image is behind. Co-Authored-By: Wayland Co-Authored-By: Claude Opus 5 --- .github/workflows/docs.yml | 3 +++ .github/workflows/publish.yml | 3 +++ .github/workflows/test.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c3b16ae..accc5e4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,6 +26,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22 + # Without this, setup-node prefers the runner image's cached 22.x, + # which lags the security releases this pin exists to pick up. + check-latest: true cache: npm - name: Install dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 769882e..e726086 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 24 + # Without this, setup-node prefers the runner image's cached 24.x, + # which lags the security releases this pin exists to pick up. + check-latest: true registry-url: 'https://registry.npmjs.org' cache: npm cache-dependency-path: packages/triki-controller/package-lock.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2123e4..c6f9e75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 24 + # Without this, setup-node prefers the runner image's cached 24.x, + # which lags the security releases this pin exists to pick up. + check-latest: true cache: npm cache-dependency-path: packages/triki-controller/package-lock.json