# npm trusted publishing with OIDC is generally available

DevFeed: [npm trusted publishing with OIDC is generally available](<https://devfeed.tech/articles/npm-trusted-publishing-with-oidc-is-generally-available-72428.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available>)

Author: Allison

Published: 2025-07-31T17:06:39Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [OpenID connect (OIDC)](<https://devfeed.tech/topics/oidc.md>), [npm](<https://devfeed.tech/topics/npm.md>), [npm security](<https://devfeed.tech/topics/npm-security.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [npm packages](<https://devfeed.tech/topics/npm-packages.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [ci-cd-workflows](<https://devfeed.tech/tags/ci-cd-workflows.md>), [cli](<https://devfeed.tech/tags/cli.md>), [cryptographic](<https://devfeed.tech/tags/cryptographic.md>), [environment](<https://devfeed.tech/tags/environment.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [github-hosted-runners](<https://devfeed.tech/tags/github-hosted-runners.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [gitlab-ci](<https://devfeed.tech/tags/gitlab-ci.md>), [npm](<https://devfeed.tech/tags/npm.md>), [npm-packages](<https://devfeed.tech/tags/npm-packages.md>), [npm-trusted-publishing](<https://devfeed.tech/tags/npm-trusted-publishing.md>), [oidc](<https://devfeed.tech/tags/oidc.md>), [openid-connect](<https://devfeed.tech/tags/openid-connect.md>), [private](<https://devfeed.tech/tags/private.md>), [provenance](<https://devfeed.tech/tags/provenance.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

npm trusted publishing is generally available, letting configured GitHub Actions workflows on GitHub-hosted runners and GitLab CI/CD workflows on gitlab.com shared runners publish packages through OIDC instead of npm write tokens. Setup requires npm CLI 11.5.1 or later, registering the authorized workflow and environment in package settings, and adding the required permissions or ID tokens to the workflow. npm accepts publishes only from the specified workflow; credentials are short-lived and workflow-specific. The CLI automatically publishes provenance attestations, so `--provenance` is unnecessary, though provenance is unavailable for private source repositories and can be disabled with `NPM_CONFIG_PROVENANCE=false` or package configuration. The feature covers public and private, scoped and unscoped packages; additional providers and self-hosted runners are not yet supported.

## Source excerpt

As of today, npm trusted publishing with OpenID Connect (OIDC) is now generally available. This feature enables you to securely publish npm packages directly from CI/CD workflows using OpenID Connect...