Skip to content

Commit

Permalink
fix: python CPE generation for alpine (#1564)
Browse files Browse the repository at this point in the history
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
  • Loading branch information
westonsteimel authored Feb 10, 2023
1 parent 3013c8b commit e236054
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions syft/pkg/cataloger/common/cpe/candidate_by_package_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ var defaultCandidateAdditions = buildCandidateLookup(
candidateKey{PkgName: "python-rrdtool"},
candidateAddition{AdditionalProducts: []string{"rrdtool"}},
},
// Alpine packages
{
pkg.ApkPkg,
candidateKey{PkgName: "python3"},
candidateAddition{AdditionalProducts: []string{"python"}, AdditionalVendors: []string{"python", "python_software_foundation"}},
},
{
pkg.ApkPkg,
candidateKey{PkgName: "python"},
candidateAddition{AdditionalVendors: []string{"python_software_foundation"}},
},
})

var defaultCandidateRemovals = buildCandidateRemovalLookup(
Expand Down

0 comments on commit e236054

Please sign in to comment.