From 7a15a2895dc22692d4639d7e4adc5046a626cab2 Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Thu, 22 Jun 2023 16:54:59 +0200 Subject: [PATCH] fix summary chunk with IsLastReport=true Signed-off-by: Matthias Bertschy --- adapters/v1/armo_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/v1/armo_utils.go b/adapters/v1/armo_utils.go index 5fc5fa9..2f2de9e 100644 --- a/adapters/v1/armo_utils.go +++ b/adapters/v1/armo_utils.go @@ -33,7 +33,7 @@ func (a *ArmoAdapter) sendSummaryAndVulnerabilities(ctx context.Context, report firstVulnerabilitiesChunk = nil } else { //first chunk is not included in the summary, so if there are vulnerabilities to send set the last part to false - report.PaginationInfo.IsLastReport = firstChunkVulnerabilitiesCount != 0 + report.PaginationInfo.IsLastReport = firstChunkVulnerabilitiesCount == 0 } //send the summary report a.postResultsAsGoroutine(ctx, report, eventReceiverURL, report.Summary.ImageTag, report.Summary.WLID, errChan, sendWG)