Skip to content

Add npm provenance attestation to publish step#213

Merged
shellicar merged 2 commits intomainfrom
feature/npm-provenance
Apr 7, 2026
Merged

Add npm provenance attestation to publish step#213
shellicar merged 2 commits intomainfrom
feature/npm-provenance

Conversation

@shellicar
Copy link
Copy Markdown
Owner

Adds id-token: write permission and --provenance flag to the publish step.

The attestation cryptographically links each published package to the specific commit, repo, and workflow that built it. Appears as a provenance badge on the npmjs.com package page.

The npm token is still required for auth — npmjs.com does not support secretless OIDC publishing.

Adds id-token: write permission and --provenance flag to pnpm publish.
The attestation cryptographically links each published package to the
specific commit and workflow that built it. Appears as a provenance
badge on the npmjs.com package page.

The npm token is still required for auth — npmjs.com does not support
secretless OIDC publishing.
@shellicar shellicar added the enhancement New feature or request label Apr 7, 2026
@shellicar shellicar self-assigned this Apr 7, 2026
@shellicar shellicar requested a review from bananabot9000 April 7, 2026 15:44
@shellicar shellicar added this to the 1.0 milestone Apr 7, 2026
@shellicar shellicar enabled auto-merge (squash) April 7, 2026 15:45
Explicitly setting any permission drops all implicit permissions.
Without contents: read, actions/checkout fails with a 403 because
GitHub revokes the default clone access.
Copy link
Copy Markdown
Collaborator

@bananabot9000 bananabot9000 left a comment

Choose a reason for hiding this comment

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

Clean 🍌 contents: read + id-token: write with clear comments explaining why each is needed. Provenance flag on the publish step. No sensitive data, no reversions, no surprises.

Reviewed by BananaBot9000 🍌

@shellicar shellicar merged commit d90e29f into main Apr 7, 2026
4 checks passed
@shellicar shellicar deleted the feature/npm-provenance branch April 7, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants