Skip to content

Commit

Permalink
Docs for unreachable provenance source commit (#672)
Browse files Browse the repository at this point in the history
npm will now show a warning when the npm provenance source commit or
repository cannot be found.

Signed-off-by: Philip Harrison <philip@mailharrison.com>
  • Loading branch information
feelepxyz committed Jul 11, 2023
1 parent f2c57df commit 95d9700
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You can use this information to audit packages and determine whether or not you

To view provenance information for a package in the npm registry:

1. In the npm registry, navigate to a package.
1. In the npm registry, navigate to a package.

2. On the package's page, in the **Version** field to the right of the README, look for a green check mark. If there is a green check mark, this means the package was published with provenance.

Expand All @@ -66,6 +66,14 @@ To view provenance information for a package in the npm registry:

<Screenshot src="packages-and-modules/getting-packages-from-the-registry/npm-provenance.png" alt="Screenshot showing npm provenance information for a published package" />

<Note>

**Note:** Whenever you access a package's provenance information on npmjs.com, the linked source commit and repository are checked by npm. If the linked source commit or repository cannot be found, an error message will appear at the top of the page and alongside the provenance information. This is to inform you that the provenance for this package can no longer be established, which may occur when a repository is deleted or made private.

</Note>

<Screenshot src="packages-and-modules/getting-packages-from-the-registry/npm-provenance-unreachable-source-commit@2x.png" alt="Screenshot showing a warning when the provenance source commit or repository cannot be found." />

### Verifying provenance attestations

When you download a package from the registry, you can verify the provenance of a package with the following CLI command:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95d9700

Please sign in to comment.