Skip to content

Commit

Permalink
fix: benchmarks list in compliance results
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 13, 2024
1 parent 7b0bc93 commit 2791e42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/compliance/http_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ func (h *HttpHandler) GetComplianceResults(echoCtx echo.Context) error {
finding.ParentBenchmarkNames = append(finding.ParentBenchmarkNames, benchmark.Title)
}
}
if benchmark, ok := benchmarksMap[h.Source.BenchmarkID]; ok {
finding.ParentBenchmarkNames = append(finding.ParentBenchmarkNames, benchmark.Title)
}

if control, ok := controlsMap[finding.ControlID]; ok {
finding.ControlTitle = control.Title
Expand Down

0 comments on commit 2791e42

Please sign in to comment.