Lotu Radar About · RSS

Multiple trusted publishing configurations for npm

GitHub Changelog Developers & Open Source Score 7/10

Summary

We’re continuing to make trusted publishing smoother for npm publishers, guided by maintainers feedback. Three updates to npm publishing are now generally available: Multiple trusted publishing configurations per package Staged… The post Multiple trusted publishing configurations for npm appeared first on The GitHub Blog .

Original Text

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> We’re continuing to make trusted publishing smoother for npm publishers, guided by maintainers feedback. Three updates to npm publishing are now generally available:

Multiple trusted publishing configurations per package

Staged packages can only be approved after malware scanning is complete

Maintainers can see their staged history in the package versions tab

A package can now have more than one trusted publishing (OIDC) configuration. Maintainers are no longer limited to one configuration per package to separate workflows with stable, prerelease, or staging versions. Before this, maintainers had to depend on workflow workarounds or keep a long-lived token around for the paths OIDC couldn’t cover.

Each configuration is independent and additive, with its own repository, workflow, and environment criteria. You can add, list, and remove them from your package’s settings page. A publish or stage is authorized if the incoming OIDC token matches any one configuration. Configurations never restrict one another, and evaluation order is not guaranteed, so don’t build logic that depends on which configuration matches.

Every trusted publishing configuration can stage a package by default. Direct publishing is opt-in per configuration. We recommend keeping your configurations to staging only. Staged publishing adds a human approval step before a version becomes available, so a compromised workflow can’t push straight to the registry.

Since we introduced publish-time malware scanning, packages are scanned before they become available. In the staged publishing queue, the approval button is now disabled while a package is still being scanned and becomes available once the scan completes. The page refreshes status every minute.

The versions tab on npmjs.com now shows to respective maintainers a detailed history for each version, including whether it was approved, rejected, or still staged.

Follow along and ask questions in the community discussion.

The post Multiple trusted publishing configurations for npm appeared first on The GitHub Blog.

Developer ToolsGitHubSoftware

Lotu Radar provides attributed news summaries and links to the original publisher. Full reporting and copyright remain with the source.