Repository navigation
chore: trust pnpm publishes and update pnpm to v12.0.0-alpha.6 - #12920
Conversation
📝 WalkthroughWalkthroughThe root pnpm version declarations are bumped to Changespnpm release configuration
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
PR Summary by QodoTrust pnpm package publishes via workspace trust-policy exclusion
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml,!pnpm-lock.yaml
📒 Files selected for processing (2)
package.jsonpnpm-workspace.yaml
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. Trust downgrade bypass
|
| trustPolicyExclude: | ||
| - '@pnpm/*' | ||
| - '@yarnpkg/[email protected]' | ||
| - pnpm |
There was a problem hiding this comment.
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
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Summary by CodeRabbit