fix: keep transitive nanoid audit recovery enforced - #1783
Conversation
|
Warning Review limit reached
Next review available in: 41 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough저장소 루트 해석과 YAML 파싱을 추가했습니다. workspace와 lockfile의 Changesnanoid 의존성 정책 검증
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
📊 Benchmark Results✅ All benchmarks passed
Updated: 2026-08-08T17:55:35.974Z · Commit: 95776e3 |
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 `@scripts/tests/dependency-audit-policy.spec.ts`:
- Around line 31-41: Update the snapshot type and transitive Nanoid collection
around resolvedNanoidVersions and transitiveNanoidVersions to include
optionalDependencies.nanoid alongside dependencies.nanoid. Collect either string
value without duplicating entries, preserving the existing policy checks for all
discovered versions.
🪄 Autofix
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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c91ba3e0-8c4d-43f2-801d-a84235da8658
📒 Files selected for processing (1)
scripts/tests/dependency-audit-policy.spec.ts
|
@coderabbitai resolve |
✅ Action performedComments resolved and changes approved. |
Outcome
The repository now fails its dependency-audit regression suite if the workspace or frozen lockfile stops constraining transitive nanoid 3.x paths to the patched 3.3.17 release.
The secure resolution itself reached trunk in #1781 and already restores
pnpm security:audit-policy; this PR makes that security outcome an executable repository contract so a later install cannot silently reintroduce GHSA-2v37-7h3g-55p8.Fixes #1782
Reviewer context
pnpm-workspace.yamlandpnpm-lock.yaml.Verification
6795b4d683b69374ee7d8f83eee5b6620d14caaarecordsnanoid@3.3.16; current trunk records onlynanoid@3.3.17pnpm exec vitest run scripts/tests/dependency-audit-policy.spec.ts --config vitest.config.ts— 58 passedpnpm security:audit-policy— passed with 0 blocking findingspnpm test:release-gates— 43 files and 1,167 tests passedpnpm changeset-required:check -- --base origin/trunk --head HEAD— passed; no publishable behavior changepnpm check— 24/25 passed; one check not applicablegit diff --check— passedReview gates
Residual risk
The regression follows pnpm's current
packagesandsnapshots.dependencieslockfile shape. A future lockfile schema change or a nanoid edge represented through another dependency field will require updating the assertion;pnpm security:audit-policyremains the primary advisory backstop.Summary by CodeRabbit
nanoid가 안전한 지정 버전(3.3.17)으로 일관되게 관리되는지 자동으로 확인합니다.