mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
fix: match OpenSSL letter releases (#2682)
* chore: match openssl 1.1 letter releases Signed-off-by: Harm Weites <harm@weites.com> * chore: include image sha Signed-off-by: Harm Weites <harm@weites.com> --------- Signed-off-by: Harm Weites <harm@weites.com>
This commit is contained in:
parent
6377465440
commit
356f7c92b4
@ -864,6 +864,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
|||||||
Metadata: metadata("openssl-binary"),
|
Metadata: metadata("openssl-binary"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
logicalFixture: "openssl/1.1.1w/linux-arm64",
|
||||||
|
expected: pkg.Package{
|
||||||
|
Name: "openssl",
|
||||||
|
Version: "1.1.1w",
|
||||||
|
Type: "binary",
|
||||||
|
PURL: "pkg:generic/openssl@1.1.1w",
|
||||||
|
Locations: locations("openssl"),
|
||||||
|
Metadata: metadata("openssl-binary"),
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
logicalFixture: "gcc/12.3.0/linux-amd64",
|
logicalFixture: "gcc/12.3.0/linux-amd64",
|
||||||
expected: pkg.Package{
|
expected: pkg.Package{
|
||||||
|
|||||||
@ -386,7 +386,8 @@ func DefaultClassifiers() []Classifier {
|
|||||||
FileGlob: "**/openssl",
|
FileGlob: "**/openssl",
|
||||||
EvidenceMatcher: FileContentsVersionMatcher(
|
EvidenceMatcher: FileContentsVersionMatcher(
|
||||||
// [NUL]OpenSSL 3.1.4'
|
// [NUL]OpenSSL 3.1.4'
|
||||||
`\x00OpenSSL (?P<version>[0-9]+\.[0-9]+\.[0-9]+(-alpha[0-9]|-beta[0-9]|-rc[0-9])?)`,
|
// [NUL]OpenSSL 1.1.1w'
|
||||||
|
`\x00OpenSSL (?P<version>[0-9]+\.[0-9]+\.[0-9]+([a-z]|-alpha[0-9]|-beta[0-9]|-rc[0-9])?)`,
|
||||||
),
|
),
|
||||||
Package: "openssl",
|
Package: "openssl",
|
||||||
PURL: mustPURL("pkg:generic/openssl@version"),
|
PURL: mustPURL("pkg:generic/openssl@version"),
|
||||||
|
|||||||
Binary file not shown.
@ -462,3 +462,11 @@ from-images:
|
|||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
paths:
|
paths:
|
||||||
- /bin/consul
|
- /bin/consul
|
||||||
|
|
||||||
|
- name: openssl
|
||||||
|
version: 1.1.1w
|
||||||
|
images:
|
||||||
|
- ref: openresty/openresty:1.25.3.1-2-alpine@sha256:b1cb45b1556801b8cb1bc29ea78faf2eaf67926a37b052dd070866e44d7df07a
|
||||||
|
platform: linux/arm64
|
||||||
|
paths:
|
||||||
|
- /usr/local/openresty/openssl/bin/openssl
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user