anchore / syft

CLI tool and library for generating a Software Bill of Materials from container images and filesystems
Apache License 2.0
5.98k stars 551 forks source link

Generate a Maven friendly CPE #3042

Closed joshbressers closed 1 month ago

joshbressers commented 1 month ago

Due to the recent events around NVD, we are able to create CPE entries in the Grype database that look like something easier to match on.

It would be helpful if when Syft generates CPEs for a Maven artifact, we include the groupId and artifactId in one of the generated CPEs, this will allow for more accurate matching from Grype.

A recent example that came up would look like this

cpe:2.3:a:com.google.api.grpc:grpc-google-cloud-bigquerystorage-v1beta1:0.168.0:*:*:*:*:*:*:*