-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add documentation for trusted publishers #1673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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 adds new documentation for trusted publishers, to be released soon.
npm/cli#8336
References
Related to npm/cli#8336