Skip to content

chore(ci): pin CI images, move to pnpm 12 and stop fork PR previews - #1194

Merged
felipefreitag merged 1 commit into
canaryfrom
chore/harden-ci-supply-chain
Nov 12, 2026
Merged

felipefreitag merged 1 commit into
canaryfrom
chore/harden-ci-supply-chain

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

The CI now blocks three supply chain tricks, the same steps react-email took. Fork pull requests no longer get a public pkg.pr.new preview built from their own code, and previews use the pinned pkg-pr-new instead of the newest one on npm. The job images are pinned, so a re-pushed Docker tag cannot change what the release runs. pnpm moves to 12 and refuses dependency versions younger than one day or with weaker trust evidence than earlier versions.

Not covered. The npm publish job still installs and builds next to the npm token. A follow-up PR splits that job.

Gotcha. If a dependency publishes a version without provenance, install fails on that version until it goes into trustPolicyExclude.


Summary by cubic

Hardens the CI supply chain by pinning Docker images to digests, moving to pnpm 12 with stricter dependency trust, and limiting pkg.pr.new previews to the main repo.

  • All workflow containers now use pinned node:24-slim and node:24 image digests, so a re-pushed tag can no longer silently change what CI runs.
  • pnpm moves from 11 to 12.18.0; installs now refuse versions younger than one day (minimumReleaseAge: 1440) and trust downgrades (trustPolicy: no-downgrade).
  • pkg-pr-new previews only publish for same-repo pull requests and use the pinned pkg-pr-new from the lockfile instead of the newest on npm.

Side effects

  • If a dependency publishes without provenance, install fails on that version until it is added to trustPolicyExclude.
  • The npm publish job still runs next to the npm token; a follow-up PR splits that job.

Written for commit 1bf4cb2. Summary will update on new commits.

View guided diff

Preview packages now publish only for same-repo pull requests and use the
pinned pkg-pr-new from the lockfile. Workflow images are pinned to digests,
pnpm moves to 12.18.0 with pnpm/action-setup v6.1.1, and installs refuse
trust downgrades and versions younger than one day.
@felipefreitag
felipefreitag requested a review from a team as a code owner November 12, 2026 19:43

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 11 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: CI supply-chain hardening: pins workflow container images, moves to pnpm 12 with stricter dependency trust, and restricts pkg.pr.new previews to same-repo PRs. Bounded, risk-reducing tooling change with no runtime/product behavior change.

View guided diff | Re-trigger cubic

@felipefreitag
felipefreitag merged commit dca9279 into canary Nov 12, 2026
13 checks passed
@felipefreitag
felipefreitag deleted the chore/harden-ci-supply-chain branch November 12, 2026 19:51
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.

3 participants