Skip to content

build: publish undici and undici-types with npm provenance - #5880

Closed
javier20dev25 wants to merge 1 commit into
nodejs:mainfrom
javier20dev25:chore/npm-publish-provenance
Closed

javier20dev25 wants to merge 1 commit into
nodejs:mainfrom
javier20dev25:chore/npm-publish-provenance

Conversation

@javier20dev25

Copy link
Copy Markdown

Description

The release job requests id-token: write (required to mint an OIDC token for npm provenance), but the publish steps invoke npm publish without --provenance. As a result, undici and undici-types are published without provenance attestations, and the OIDC permission is granted in the privileged release job without being used.

This change attaches npm provenance to both published packages. Everything else needed is already in place (id-token: write, environment: release, scoped permissions: contents: write + id-token: write). There is no behavioral change beyond the signed attestation metadata published alongside the tarballs.

Verification

  • No provenance setting exists repo-wide (checked package.json, .npmrc, workflows) — the job's id-token: write is otherwise unused.
  • After this PR, the next release can be verified with npm audit signatures or the registry metadata (repository.json provenance field).

Detected with Sentinel Cloud (Sentinel Security Intelligence). More about the tool on my profile: https://github.com/javier20dev25

@mcollina

Copy link
Copy Markdown
Member

There is absolutely no need for this. It's enabled automatically.

@mcollina mcollina closed this Sep 24, 2026
@javier20dev25

Copy link
Copy Markdown
Author

Thanks for clarifying — I overlooked that provenance is already enabled automatically. I appreciate the quick response.

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.

2 participants