From 3136f69d3943e0a99e2d5ff06b81f1e5be0b9ef7 Mon Sep 17 00:00:00 2001 From: Dan Luhring Date: Mon, 10 Jul 2023 11:54:19 -0400 Subject: [PATCH] Fix CPE gen for k8s python client (#1921) Signed-off-by: Dan Luhring Co-authored-by: Christopher Phillips --- syft/pkg/cataloger/common/cpe/candidate_by_package_type.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go b/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go index 6588ea8bb18..bc62d390984 100644 --- a/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go +++ b/syft/pkg/cataloger/common/cpe/candidate_by_package_type.go @@ -356,6 +356,11 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup( candidateKey{PkgName: "redis"}, candidateRemovals{VendorsToRemove: []string{"redis"}}, }, + { + pkg.PythonPkg, + candidateKey{PkgName: "kubernetes"}, + candidateRemovals{ProductsToRemove: []string{"kubernetes"}}, + }, // NPM packages { pkg.NpmPkg,