Skip to content
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

chore: generate and verify provenance statements #1542

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Conversation

sjinks
Copy link
Member

@sjinks sjinks commented Nov 1, 2023

Description

Provenance data give consumers a verifiable way to link a package back to its source repository and the specific build instructions used to publish it. This can increase supply-chain security for our packages. We can also use provenance attestations to reduce the risk of supply chain attacks targetted at us.

The provenance attestation is established by publicly providing a link to a package's source code and build instructions from the build environment. This allows developers to verify where and how your package was built before they download it.

Publish attestations are generated by the registry when a package is published by an authorized user. When an npm package is published with provenance, it is signed by Sigstore public good servers and logged in a public transparency ledger, where users can view this information.

Ref: https://github.blog/2023-04-19-introducing-npm-package-provenance/
Ref: https://docs.npmjs.com/generating-provenance-statements
Ref: https://github.blog/changelog/2023-09-26-npm-provenance-general-availability/

Steps to Test

Provenance generation: N/A - no testable changes.
Provenance verification:

$ npm audit signatures
audited 1117 packages in 10s

1117 packages have verified registry signatures

7 packages have verified attestations

@sjinks sjinks self-assigned this Nov 1, 2023
@sjinks sjinks changed the title chore: generate provenance statements chore: generate and verify provenance statements Nov 1, 2023
@sjinks sjinks merged commit d0d3c29 into trunk Nov 2, 2023
10 checks passed
@sjinks sjinks deleted the add/npm-provenance branch November 2, 2023 22:17
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