Repository navigation
ci: Publish through npm trusted publishing instead of a token - #3
Conversation
npm trusts this workflow over OIDC, so no NPM_TOKEN secret is stored. pnpm packs the package so workspace ranges are rewritten, and npm 11.5.1 or newer publishes the tarball with provenance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AqCT91WnQNnHJQAQUyrXJt
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe publish workflow installs a supported npm version, packs the selected workspace package into a tarball, and publishes it with npm using OIDC trusted publishing. Changesnpm package publishing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable release-workflow issue remains in the supplied evidence; the change is mergeable after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change removes the publishing step’s use of a stored token while preserving manual execution, the main-branch gate, and the selected package. No introduced security defect was established, but npm’s external publisher binding and retirement of the old token remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Before: the manual Publish workflow needed an
NPM_TOKENsecret.After: npm trusts
publish.ymlin this repository over OIDC, so no token is stored. The workflow still runs only by hand frommain.How: pnpm packs the chosen package so
workspace:ranges are rewritten, npm is updated to 11.5.1 or newer, andnpm publishsends the tarball with an OIDC token and provenance. The trusted publisher binding for@taulabs/replicad(repositorytaucad/replicad, workflowpublish.yml) is set once on npm withnpm trust github.🤖 Generated with Claude Code
https://claude.ai/code/session_01AqCT91WnQNnHJQAQUyrXJt
Generated by Claude Code
Summary by CodeRabbit