From 40ffd512db5a05375ba44dbcc84ce1aec777cfa5 Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Wed, 19 Jun 2024 10:37:53 -0300 Subject: [PATCH] fix VulnerabilityReport totalUniquePackages (#300) --- api/zora/v1alpha2/vulnerabilityreport_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/zora/v1alpha2/vulnerabilityreport_types.go b/api/zora/v1alpha2/vulnerabilityreport_types.go index 8d77745a..af17823b 100644 --- a/api/zora/v1alpha2/vulnerabilityreport_types.go +++ b/api/zora/v1alpha2/vulnerabilityreport_types.go @@ -54,7 +54,7 @@ func (in *VulnerabilityReportSpec) Summarize() { } for _, p := range v.Packages { total++ - unique[p.String()] = true + unique[p.Package+p.Version] = true } } in.Summary = *s