Skip to content

use syft for matching CPE fields to package type#3057

Closed
chovanecadam wants to merge 1 commit intoanchore:mainfrom
chovanecadam:use-syft-for-cpe-target-sw-match
Closed

use syft for matching CPE fields to package type#3057
chovanecadam wants to merge 1 commit intoanchore:mainfrom
chovanecadam:use-syft-for-cpe-target-sw-match

Conversation

@chovanecadam
Copy link
Copy Markdown
Contributor

Minor change here. grype/internal/cpe_target_software_to_pkg_type.go was moved to Syft in this MR so here we make use of this.

Signed-off-by: Adam Chovanec <git@adamchovanec.cz>
"github.com/anchore/grype/grype/vulnerability"
"github.com/anchore/syft/syft/cpe"
syftPkg "github.com/anchore/syft/syft/pkg"
cpe_cataloger "github.com/anchore/syft/syft/pkg/cataloger/common/cpe"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: it's unusual to use underscores in names, a common pattern for syft imports is syft<Thing>, I think I'd prefer to use the name syftCpe here for consistency

@chovanecadam
Copy link
Copy Markdown
Contributor Author

closing in favour of #3058

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