fix: stop emitting redis redis CPE for PHP PECL redis (#3881)

This prevents the cpe🅰️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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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