Skip to content

Commit

Permalink
fix: Don't use the actual redis or grpc CPEs for gems (#1926)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Luhring <[email protected]>
  • Loading branch information
luhring authored Jul 10, 2023
1 parent 376c428 commit c0c089f
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 @@ -461,6 +461,17 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup(
VendorsToRemove: []string{"gradle"},
},
},
// Ruby packages
{
pkg.GemPkg,
candidateKey{PkgName: "redis"},
candidateRemovals{ProductsToRemove: []string{"redis"}},
},
{
pkg.GemPkg,
candidateKey{PkgName: "grpc"},
candidateRemovals{ProductsToRemove: []string{"grpc"}},
},
})

// buildCandidateLookup is a convenience function for creating the defaultCandidateAdditions set
Expand Down

0 comments on commit c0c089f

Please sign in to comment.