mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
Add binary detection for PHP composer (#2432)
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
This commit is contained in:
parent
6030a69b17
commit
4846639ee4
@ -172,6 +172,15 @@ var defaultClassifiers = []classifier{
|
|||||||
PURL: mustPURL("pkg:generic/php@version"),
|
PURL: mustPURL("pkg:generic/php@version"),
|
||||||
CPEs: singleCPE("cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"),
|
CPEs: singleCPE("cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Class: "php-composer-binary",
|
||||||
|
FileGlob: "**/composer*",
|
||||||
|
EvidenceMatcher: fileContentsVersionMatcher(
|
||||||
|
`(?m)'pretty_version'\s*=>\s*'(?P<version>[0-9]+\.[0-9]+\.[0-9]+(beta[0-9]+|alpha[0-9]+|RC[0-9]+)?)'`),
|
||||||
|
Package: "composer",
|
||||||
|
PURL: mustPURL("pkg:generic/composer@version"),
|
||||||
|
CPEs: singleCPE("cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Class: "httpd-binary",
|
Class: "httpd-binary",
|
||||||
FileGlob: "**/httpd",
|
FileGlob: "**/httpd",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user