mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
feat: detect curl binaries (#3146)
This commit is contained in:
parent
9ab3de1819
commit
cff9d494df
@ -529,6 +529,16 @@ func DefaultClassifiers() []Classifier {
|
|||||||
PURL: mustPURL("pkg:generic/wp-cli@version"),
|
PURL: mustPURL("pkg:generic/wp-cli@version"),
|
||||||
CPEs: singleCPE("cpe:2.3:a:wp-cli:wp-cli:*:*:*:*:*:*:*:*"),
|
CPEs: singleCPE("cpe:2.3:a:wp-cli:wp-cli:*:*:*:*:*:*:*:*"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Class: "curl-binary",
|
||||||
|
FileGlob: "**/curl",
|
||||||
|
EvidenceMatcher: FileContentsVersionMatcher(
|
||||||
|
`curl/(?P<version>[0-9]+\.[0-9]+\.[0-9]+)`,
|
||||||
|
),
|
||||||
|
Package: "curl",
|
||||||
|
PURL: mustPURL("pkg:generic/curl@version"),
|
||||||
|
CPEs: singleCPE("cpe:2.3:a:curl:curl:*:*:*:*:*:*:*:*"),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -577,3 +577,12 @@ from-images:
|
|||||||
platform: linux/arm64
|
platform: linux/arm64
|
||||||
paths:
|
paths:
|
||||||
- /usr/local/openresty/openssl/bin/openssl
|
- /usr/local/openresty/openssl/bin/openssl
|
||||||
|
|
||||||
|
- name: curl
|
||||||
|
version: 8.9.1
|
||||||
|
images:
|
||||||
|
- ref: curlimages/curl:8.9.1@sha256:8addc281f0ea517409209f76832b6ddc2cabc3264feb1ebbec2a2521ffad24e4
|
||||||
|
platform: linux/amd64
|
||||||
|
paths:
|
||||||
|
- /usr/bin/curl
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user