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:
Pujitha Paladugu
2026-08-27 04:20:09 +00:00
committed by GitHub
co-authored by Pujitha Paladugu
parent bf82010f3c
commit d3734ddeb2
6 changed files with 62 additions and 0 deletions
@@ -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{