Repository navigation
chore(ci): pin CI images, move to pnpm 12 and stop fork PR previews - #1194
Merged
Merged
Conversation
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.
dielduarte
approved these changes
Nov 12, 2026
klotty
approved these changes
Nov 12, 2026
klotty
left a comment
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
node:24-slimandnode:24image digests, so a re-pushed tag can no longer silently change what CI runs.minimumReleaseAge: 1440) and trust downgrades (trustPolicy: no-downgrade).pkg-pr-newpreviews only publish for same-repo pull requests and use the pinnedpkg-pr-newfrom the lockfile instead of the newest on npm.Side effects
trustPolicyExclude.Written for commit 1bf4cb2. Summary will update on new commits.