mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
fix(binary): detect grafana security-patch release versions (#5213)
--------- Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com> Co-authored-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
This commit is contained in:
co-authored by
Pujitha Paladugu
parent
bf82010f3c
commit
d3734ddeb2
@@ -2294,6 +2294,39 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("grafana-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "grafana/12.4.3-security-02/linux-arm",
|
||||
expected: pkg.Package{
|
||||
Name: "grafana",
|
||||
Version: "12.4.3",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/grafana@12.4.3",
|
||||
Locations: locations("grafana"),
|
||||
Metadata: metadata("grafana-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "grafana/12.0.0-security-01/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "grafana",
|
||||
Version: "12.0.0",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/grafana@12.0.0",
|
||||
Locations: locations("grafana"),
|
||||
Metadata: metadata("grafana-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "grafana/11.0.5-security-01/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "grafana",
|
||||
Version: "11.0.5",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/grafana@11.0.5",
|
||||
Locations: locations("grafana"),
|
||||
Metadata: metadata("grafana-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "grafana/12.3.1/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
|
||||
Reference in New Issue
Block a user