CI: Node 22 tests, registry signatures, licence review #86

Merged
jared merged 1 commits from ci-node22-supplychain into main 2026-11-23 19:31:38 -05:00
Owner

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

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)
jared added 1 commit 2026-11-23 19:21:55 -05:00
CI: Node 22 tests, registry signatures, licence review (#45)
CI / Lint (eslint) (pull_request) Successful in 20s
CI / Test (jest) (pull_request) Successful in 25s
CI / Security (npm audit) (pull_request) Successful in 52s
CI / Test (Node 22) (pull_request) Successful in 1m37s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m21s
CI / Integration (api) (pull_request) Successful in 3m17s
CI / UI screenshots (before/after) (pull_request) Successful in 12s
CI / UI (playwright) (pull_request) Successful in 2m41s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
51f4593b55
- 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 main 2026-11-23 19:31:38 -05:00
jared deleted branch ci-node22-supplychain 2026-11-23 19:31:40 -05:00
Sign in to join this conversation.