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:
Will Murphy
2025-05-12 16:17:18 -04:00
committed by GitHub
parent 621d21eb04
commit 58392a9717
@@ -630,6 +630,12 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup(
candidateKey{PkgName: "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