mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
fix: stop emitting redis redis CPE for PHP PECL redis (#3881)
This prevents the cpe:a:redis:redis... from being emitted for the PHP Pear / PECL package called redis. Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
This commit is contained in:
@@ -630,6 +630,12 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup(
|
|||||||
candidateKey{PkgName: "grpc"},
|
candidateKey{PkgName: "grpc"},
|
||||||
candidateRemovals{ProductsToRemove: []string{"grpc"}},
|
candidateRemovals{ProductsToRemove: []string{"grpc"}},
|
||||||
},
|
},
|
||||||
|
// PHP Packages
|
||||||
|
{
|
||||||
|
pkg.PhpPearPkg,
|
||||||
|
candidateKey{PkgName: "redis"},
|
||||||
|
candidateRemovals{ProductsToRemove: []string{"redis"}},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
// buildCandidateLookup is a convenience function for creating the defaultCandidateAdditions set
|
// buildCandidateLookup is a convenience function for creating the defaultCandidateAdditions set
|
||||||
|
|||||||
Reference in New Issue
Block a user