mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 17:03:17 +01:00
fix: add missing purl for busybox (#2457)
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
This commit is contained in:
parent
c72d295719
commit
bf39456fbc
@ -540,6 +540,7 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) {
|
|||||||
expected: pkg.Package{
|
expected: pkg.Package{
|
||||||
Name: "busybox",
|
Name: "busybox",
|
||||||
Version: "3.33.3",
|
Version: "3.33.3",
|
||||||
|
PURL: "pkg:generic/busybox@3.33.3",
|
||||||
Locations: locations("["), // note: busybox is a link to [
|
Locations: locations("["), // note: busybox is a link to [
|
||||||
Metadata: metadata("busybox-binary", "[", "busybox"),
|
Metadata: metadata("busybox-binary", "[", "busybox"),
|
||||||
},
|
},
|
||||||
@ -809,6 +810,7 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases_Image(t *testing.T) {
|
|||||||
expected: pkg.Package{
|
expected: pkg.Package{
|
||||||
Name: "busybox",
|
Name: "busybox",
|
||||||
Version: "1.35.0",
|
Version: "1.35.0",
|
||||||
|
PURL: "pkg:generic/busybox@1.35.0",
|
||||||
Locations: locations("/bin/["),
|
Locations: locations("/bin/["),
|
||||||
Metadata: metadata("busybox-binary", "/bin/[", "/bin/busybox"),
|
Metadata: metadata("busybox-binary", "/bin/[", "/bin/busybox"),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -131,6 +131,7 @@ var defaultClassifiers = []classifier{
|
|||||||
EvidenceMatcher: fileContentsVersionMatcher(
|
EvidenceMatcher: fileContentsVersionMatcher(
|
||||||
`(?m)BusyBox\s+v(?P<version>[0-9]+\.[0-9]+\.[0-9]+)`),
|
`(?m)BusyBox\s+v(?P<version>[0-9]+\.[0-9]+\.[0-9]+)`),
|
||||||
Package: "busybox",
|
Package: "busybox",
|
||||||
|
PURL: mustPURL("pkg:generic/busybox@version"),
|
||||||
CPEs: singleCPE("cpe:2.3:a:busybox:busybox:*:*:*:*:*:*:*:*"),
|
CPEs: singleCPE("cpe:2.3:a:busybox:busybox:*:*:*:*:*:*:*:*"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user