Skip to content

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

Closed
wants to merge 6 commits into from
Closed

Conversation

leobalter
Copy link
Contributor

This adds new documentation for trusted publishers, to be released soon.

npm/cli#8336

References

Related to npm/cli#8336

@leobalter leobalter requested a review from a team as a code owner July 17, 2025 00:23
Copy link

@Copilot Copilot AI left a 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

@leobalter leobalter closed this Jul 17, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant