Conversation
This comment was marked as outdated.
This comment was marked as outdated.
- Replace NPM_TOKEN with OIDC authentication - Add id-token permission for GitHub Actions - Enable npm provenance for published packages - Add workflow to check package provenance status - Fix template injection vulnerabilities
Contributor
📦 NPM Package StatusPublished Packages Missing OIDC ConfigurationConfigure OIDC for these packages:
Setup Instructions:
|
Resolved conflicts: - package.json: Updated lint-staged to v16, removed lerna dependency - pnpm-lock.yaml: Regenerated after package.json changes - lerna.json: Removed (following oidc branch approach) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…g install The prepublish script was running during pnpm install and cleaning the lib directory, causing "Cannot find module '../lib/bin.js'" error in CI. Changed to prepublishOnly so it only runs during actual npm publish. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
The single quotes in pnpm filter commands were not working on Windows PowerShell, causing "No projects matched the filters" error in CI. Changed to escaped double quotes for cross-platform compatibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Removed commit-version script as it's no longer needed with the new CI workflow. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Merged
This was referenced Sep 8, 2025
Merged
Merged
Merged
Merged
Merged
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.
Summary
This PR migrates the npm publishing process from traditional token-based authentication to OpenID Connect (OIDC) trusted publishing. This enhancement provides automatic package provenance, improved security through short-lived tokens, and verifiable build attestations for all published packages.
Key Changes
NPM_TOKENwith GitHub's OIDC provider for secure, temporary authenticationMotivation
Traditional npm tokens pose several security risks:
OIDC trusted publishing addresses these concerns by:
Changes in Detail
1. Release Workflow Migration (
.github/workflows/release.yml)id-token: writepermission to enable OIDC token generationNPM_CONFIG_PROVENANCE: trueenvironment variable for automatic provenanceNPM_TOKENandNODE_AUTH_TOKENfrom secrets2. Provenance Status Monitoring (
.github/workflows/check-provenance.yml)New workflow that:
Security Benefits
Breaking Changes
None. This change is transparent to package consumers and maintains backward compatibility.
Test Plan
Manual Verification Required
Release Process Validation
Provenance Check Workflow
package.jsonnpm Registry Verification
Error Scenarios
Migration Notes
NPM_TOKENsecret can be removed after successful migrationReferences