Skip to content

Conversation

@chovanecadam
Copy link
Contributor

Makes use of new API in Syft for decoding CPEs and enables reading a file with CPEs for scan.

I deleted tests in grype/pkg/cpe_provider_test.go as they are the same as in syft (see here). It doesn't make sense to me to have the same test the same functionality in two places, but let me know if you want it some other way.

Adam Chovanec added 2 commits November 18, 2025 10:36
Signed-off-by: Adam Chovanec <[email protected]>
Name: c.Attributes.Product,
Version: c.Attributes.Version,
CPEs: []cpe.CPE{c},
Type: internal.CPETargetSoftwareToPackageType(c.Attributes.TargetSW),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the CPETargetSoftwareToPackageType get removed now, too since it's in syft?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I did that in a separate MR for some reason #3057

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