You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(audit): add --include-attestations flag to output sigstore bundles
Add a new --include-attestations flag for `npm audit signatures` that
includes the full sigstore attestation bundles in JSON output. This
enables downstream tooling to consume and further process attestation
data (e.g. for policy engines, SBOMs, or custom verification).
When used with `npm audit signatures --json --include-attestations`,
the JSON output includes a `verified` array containing each package's
name, version, and attestation bundles.
Depends on npm/pacote#457 to expose the fetched attestation bundles
on the manifest's _attestations property.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/lib/content/commands/npm-audit.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,16 @@ The `audit signatures` command will also verify the provenance attestations of d
42
42
Because provenance attestations are such a new feature, security features may be added to (or changed in) the attestation format over time.
43
43
To ensure that you're always able to verify attestation signatures check that you're running the latest version of the npm CLI. Please note this often means updating npm beyond the version that ships with Node.js.
44
44
45
+
To include the full sigstore attestation bundles in JSON output, use:
0 commit comments