A new Test (Node 22) job runs the unit tests on node:22-bookworm, pinned by digest.
Why a separate job: a matrix would rename the required CI / Test (jest) (pull_request) check. Changing branch protection needs a temporary admin token.
Not required, and deploy doesn't wait for it. A failure is an early warning before production moves to Node 22.
Supply chain
The Security job now also checks:
Registry signatures. It runs npm ci --ignore-scripts, then npm audit signatures, which verifies every installed package's registry signature and attestations. Locally, 470 signatures and 64 attestations were verified.
Licences. A new script, scripts/ci/licenses.js, fails when a production dependency's licence isn't on the allowlist:
the allowlist: MIT, ISC, BSD-2/3-Clause, Apache-2.0, 0BSD, BlueOak-1.0.0, CC0-1.0, Unlicense and Python-2.0;
SPDX OR and AND expressions are handled;
licences the lockfile doesn't record are read from the installed package.json;
no new tool is needed. Locally, all 105 production packages pass, and the script fails correctly when MIT is taken off the list.
Part of #45. This changes CI only.
## Node 22
A new **Test (Node 22)** job runs the unit tests on `node:22-bookworm`, pinned by digest.
- **Why a separate job:** a matrix would rename the required `CI / Test (jest) (pull_request)` check. Changing branch protection needs a temporary admin token.
- **Not required, and deploy doesn't wait for it.** A failure is an early warning before production moves to Node 22.
## Supply chain
The Security job now also checks:
- **Registry signatures.** It runs `npm ci --ignore-scripts`, then `npm audit signatures`, which verifies every installed package's registry signature and attestations. Locally, 470 signatures and 64 attestations were verified.
- **Licences.** A new script, `scripts/ci/licenses.js`, fails when a production dependency's licence isn't on the allowlist:
- the allowlist: MIT, ISC, BSD-2/3-Clause, Apache-2.0, 0BSD, BlueOak-1.0.0, CC0-1.0, Unlicense and Python-2.0;
- SPDX `OR` and `AND` expressions are handled;
- licences the lockfile doesn't record are read from the installed `package.json`;
- no new tool is needed. Locally, all 105 production packages pass, and the script fails correctly when MIT is taken off the list.
`actionlint` and `zizmor` are clean.
**Still open in #45:**
- attaching the SBOM to the deploy tag;
- posting screenshots as a PR comment;
- the app-factory refactor;
- moving production to Node 22;
- Renovate (deferred).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Test (Node 22): the unit tests on node:22-bookworm (pinned by digest),
as a separate job so the required "Test (jest)" context is unchanged.
Not required and not a deploy prerequisite: a heads-up before
production moves to Node 22.
- Security job: npm ci --ignore-scripts, then `npm audit signatures`
(every installed package's registry signature and attestations) and
scripts/ci/licenses.js, which fails when a production dependency's
licence is not on the allowlist (MIT, ISC, BSD-2/3, Apache-2.0, 0BSD,
BlueOak-1.0.0, CC0-1.0, Unlicense, Python-2.0). Licences missing from
the lockfile are read from the installed package.json.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared
merged commit e6dfb011c7 into main2026-11-23 19:31:38 -05:00
jared
deleted branch ci-node22-supplychain2026-11-23 19:31:40 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #45. This changes CI only.
Node 22
A new Test (Node 22) job runs the unit tests on
node:22-bookworm, pinned by digest.CI / Test (jest) (pull_request)check. Changing branch protection needs a temporary admin token.Supply chain
The Security job now also checks:
npm ci --ignore-scripts, thennpm audit signatures, which verifies every installed package's registry signature and attestations. Locally, 470 signatures and 64 attestations were verified.scripts/ci/licenses.js, fails when a production dependency's licence isn't on the allowlist:ORandANDexpressions are handled;package.json;actionlintandzizmorare clean.Still open in #45:
🤖 Generated with Claude Code