Skip to content

chore: trust pnpm publishes and update pnpm to v12.0.0-alpha.6 - #12920

Merged
zkochan merged 2 commits into
mainfrom
trust-pnpm
Jul 10, 2026
Merged

zkochan merged 2 commits into
mainfrom
trust-pnpm

Conversation

@zkochan

@zkochan zkochan commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated the project’s package manager version.
    • Adjusted workspace trust policy settings for improved package management compatibility.

Copilot AI review requested due to automatic review settings July 10, 2026 20:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The root pnpm version declarations are bumped to 12.0.0-alpha.6, and pnpm is added to the workspace trust policy exclusions.

Changes

pnpm release configuration

Layer / File(s) Summary
Update pnpm version metadata
package.json
The root packageManager and devEngines.packageManager.version values are updated to 12.0.0-alpha.6.
Add pnpm trust policy exclusion
pnpm-workspace.yaml
pnpm is added to trustPolicyExclude.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch trust-pnpm

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Trust pnpm package publishes via workspace trust-policy exclusion

⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Add pnpm to the workspace trust-policy exclude list.
• Prevent pnpm publishes from being blocked by the repository trust policy.
Diagram

graph TD
  A["Developer/CI"] --> B["pnpm publish"] --> C["pnpm-workspace.yaml"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Exclude only specific pnpm versions (e.g., `[email protected]`)
  • ➕ Tighter supply-chain surface area if future pnpm releases are compromised
  • ➖ More maintenance overhead; requires updates on pnpm upgrades
  • ➖ May break publishes if versions drift in CI/dev
2. Use signature/attestation-based allowlisting (if supported in your environment)
  • ➕ Stronger provenance guarantees than blanket trust/exclusion
  • ➖ Higher setup complexity; depends on tooling support and workflow changes

Recommendation: For most repos, excluding pnpm is a pragmatic fix to unblock publishing with minimal operational overhead. If you have strict supply-chain requirements, prefer version-scoped exclusion or an attestation-based approach.

Files changed (1) +1 / -0

Other (1) +1 / -0
pnpm-workspace.yamlExclude 'pnpm' from trust policy enforcement +1/-0

Exclude 'pnpm' from trust policy enforcement

• Adds 'pnpm' to 'trustPolicyExclude' so pnpm publishes are not blocked by the workspace trust policy.

pnpm-workspace.yaml

Copilot AI review requested due to automatic review settings July 10, 2026 20:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Auto-approved notes - no code suggestions found
- 'approve_pr_on_self_review' flag enabled

@zkochan zkochan changed the title chore: trust pnpm publishes chore: trust pnpm publishes and update pnpm to v12.0.0-alpha.6 Jul 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pnpm-workspace.yaml`:
- Line 509: Add a regression test for the trust-policy decision represented by
the pnpm-workspace exclusion, covering that pnpm is excluded while unrelated
package names continue to be checked. Locate the trust-policy evaluation test or
relevant function and assert the test fails without the pnpm exclusion and
passes with it.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: de2389de-895e-4c1b-b028-5b129aa0862c

📥 Commits

Reviewing files that changed from the base of the PR and between 2d7e723 and ed13c40.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
📒 Files selected for processing (2)
  • package.json
  • pnpm-workspace.yaml

Comment thread pnpm-workspace.yaml Resolved
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Action required

1. Trust downgrade bypass 🐞 Bug ⛨ Security
Description
Adding pnpm to trustPolicyExclude disables the trustPolicy: no-downgrade verification for the
pnpm package, so pnpm releases that lose provenance/trusted-publisher/staged-publish evidence will
no longer be blocked by the trust-downgrade detector. Because this repo pins and can auto-download
pnpm (devEngines.packageManager.onFail: download), this reduces protection specifically for the
executable that runs installs and scripts.
Code

pnpm-workspace.yaml[509]

+  - pnpm
Evidence
trustPolicyExclude is documented and implemented as an opt-out from the trust-policy check; the
verifier only runs the trust gate when the package is not excluded. The trust-policy check is
explicitly intended to reject high-risk trust downgrades as possible takeovers, and this repo’s
lockfile and manifest show pnpm is a pinned/auto-downloadable package-manager dependency—so
excluding it removes that protection for a security-sensitive executable.

pnpm-workspace.yaml[504-512]
pnpm/crates/config/src/lib.rs[1471-1476]
pnpm/crates/resolving-npm-resolver/src/create_npm_resolution_verifier.rs[349-355]
pnpm/crates/resolving-npm-resolver/src/trust_checks.rs[1-10]
pnpm/crates/resolving-npm-resolver/src/trust_checks.rs[56-66]
pnpm-lock.yaml[6-14]
package.json[65-71]
pnpm/crates/cli/src/config_deps.rs[54-70]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`pnpm-workspace.yaml` adds `pnpm` to `trustPolicyExclude`, which opts the entire `pnpm` package out of the `trustPolicy: no-downgrade` checks. This bypass removes a supply-chain safety net that is explicitly meant to detect “possible package takeover” events when trust evidence regresses.

### Issue Context
- `trustPolicyExclude` supports `name[@version]` patterns, so this can be narrowly scoped to a single problematic version instead of disabling checks for all pnpm versions.
- This repo pins `[email protected]` and may auto-download it on mismatch (`onFail: download`), making `pnpm` a high-impact dependency to exempt.

### Fix Focus Areas
- pnpm-workspace.yaml[504-512]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

Comment thread pnpm-workspace.yaml
trustPolicyExclude:
- '@pnpm/*'
- '@yarnpkg/[email protected]'
- pnpm

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Trust downgrade bypass 🐞 Bug ⛨ Security

Adding pnpm to trustPolicyExclude disables the trustPolicy: no-downgrade verification for the
pnpm package, so pnpm releases that lose provenance/trusted-publisher/staged-publish evidence will
no longer be blocked by the trust-downgrade detector. Because this repo pins and can auto-download
pnpm (devEngines.packageManager.onFail: download), this reduces protection specifically for the
executable that runs installs and scripts.
Agent Prompt
### Issue description
`pnpm-workspace.yaml` adds `pnpm` to `trustPolicyExclude`, which opts the entire `pnpm` package out of the `trustPolicy: no-downgrade` checks. This bypass removes a supply-chain safety net that is explicitly meant to detect “possible package takeover” events when trust evidence regresses.

### Issue Context
- `trustPolicyExclude` supports `name[@version]` patterns, so this can be narrowly scoped to a single problematic version instead of disabling checks for all pnpm versions.
- This repo pins `[email protected]` and may auto-download it on mismatch (`onFail: download`), making `pnpm` a high-impact dependency to exempt.

### Fix Focus Areas
- pnpm-workspace.yaml[504-512]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Auto-approved notes - no code suggestions found
- 'approve_pr_on_self_review' flag enabled

@zkochan
zkochan merged commit 84e3d3b into main Jul 10, 2026
18 checks passed
@zkochan
zkochan deleted the trust-pnpm branch July 10, 2026 20:18
@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants