Repository navigation
build: publish undici and undici-types with npm provenance - #5880
Closed
javier20dev25 wants to merge 1 commit into
Closed
javier20dev25 wants to merge 1 commit into
javier20dev25 wants to merge 1 commit into
Conversation
Member
|
There is absolutely no need for this. It's enabled automatically. |
Author
|
Thanks for clarifying — I overlooked that provenance is already enabled automatically. I appreciate the quick response. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
releasejob requestsid-token: write(required to mint an OIDC token for npm provenance), but the publish steps invokenpm publishwithout--provenance. As a result,undiciandundici-typesare 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, scopedpermissions: contents: write + id-token: write). There is no behavioral change beyond the signed attestation metadata published alongside the tarballs.Verification
provenancesetting exists repo-wide (checkedpackage.json,.npmrc, workflows) — the job'sid-token: writeis otherwise unused.npm audit signaturesor the registry metadata (repository.jsonprovenance field).Detected with Sentinel Cloud (Sentinel Security Intelligence). More about the tool on my profile: https://github.com/javier20dev25