Skip to content

Conversation

@fraxken
Copy link
Member

@fraxken fraxken commented Oct 23, 2025

close #491

@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: dfc4deb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nodesecure/scanner Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for NPM provenance attestations in dependency versions. The changes enable the scanner to capture and store attestation data from NPM packages, which provides cryptographic verification of package provenance.

Key Changes:

  • Added attestations field to the DependencyVersion interface to store NPM provenance data
  • Updated NpmRegistryProvider to collect and assign attestation information from package metadata
  • Enhanced test coverage with a new test case verifying attestation data handling

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
workspaces/scanner/src/types.ts Added attestations property to DependencyVersion interface using Dist["attestations"] type
workspaces/scanner/src/registry/NpmRegistryProvider.ts Modified to extract and assign attestations from packument data to dependency versions
workspaces/scanner/test/NpmRegistryProvider.spec.ts Added test case for attestations and explicit type annotations for warnings arrays
.changeset/twenty-planes-think.md Added changeset documenting the new feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fraxken fraxken merged commit dadb7fb into master Oct 23, 2025
5 checks passed
@fraxken fraxken deleted the pkg-provenance branch October 23, 2025 19:20
@github-actions github-actions bot mentioned this pull request Oct 23, 2025
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.

(Scanner) keep information about package having provenance ?

3 participants