interlynk-io / sbomgr

SBOM Grep - search through SBOMs
Apache License 2.0
21 stars 2 forks source link

grepping with CPE can result in confusion #15

Closed surendrapathak closed 1 year ago

surendrapathak commented 1 year ago

Actual Behavior Example of grepping through 'aerospike' image for purl 'aerospike'

Screenshot 2023-03-22 at 2 52 06 PM

Note that the last column is a PURL and it can be understood why grep matched them.

Example of grepping through 'aerospike' image for CPE 'aerospike'

Screenshot 2023-03-22 at 2 53 21 PM

Note that the last column is still PURL, and it is unclear why these were matched and not others.

Expected Behavior Both CPE and PURL searches should display information in a way it is consistent with the user's expectations. So, showing the match or letting the user customize the output will be a better experience.

surendrapathak commented 1 year ago

Use case sbomgr should be able to list PURLs matching a given component name from multiple SBOMs in a simple table e.g.

sbomgr packages - E -P 'aerospike' -O tool, purl

-O should support

Limit: