Add documentation for trusted publishers#1673
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive documentation for npm's trusted publishing feature, which allows secure, token-free package publishing from CI/CD workflows using OpenID Connect (OIDC) authentication. The documentation explains how to configure and use trusted publishing with GitHub Actions and GitLab CI/CD.
- Creates a new comprehensive trusted publishing guide with setup instructions, security best practices, and troubleshooting
- Updates existing documentation to reference and recommend trusted publishing where relevant
- Provides configuration examples for both GitHub Actions and GitLab CI/CD workflows
Reviewed Changes
Copilot reviewed 6 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| trusted-publishers.mdx | New comprehensive documentation covering trusted publishing setup, configuration, and usage |
| requiring-2fa-for-package-publishing-and-settings-modification.mdx | Adds reference to trusted publishing as an alternative to automation tokens |
| generating-provenance-statements.mdx | Notes automatic provenance generation with trusted publishing |
| creating-and-publishing-unscoped-public-packages.mdx | Updates publishing note to mention trusted publishing benefits |
| using-private-packages-in-a-ci-cd-workflow.mdx | Adds section recommending trusted publishing for package publishing |
| creating-and-viewing-access-tokens.mdx | Updates token recommendations to mention trusted publishing alternative |
leobalter
added a commit
that referenced
this pull request
Jul 31, 2025
This adds new documentation for trusted publishers with OpenID Connect (OIDC). ## References Related to npm/cli#8336 Replaces #1673 (now using a branch without a fork) --------- Co-authored-by: Karen Li <47998177+karenjli@users.noreply.github.com>
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.
This adds new documentation for trusted publishers, to be released soon.
npm/cli#8336
References
Related to npm/cli#8336