diff --git a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go index 0812c857..427cac89 100644 --- a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go +++ b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go @@ -57,13 +57,13 @@ func NewReportEventReceiver(tenantConfig *cautils.ConfigObj, reportID string, su customerAdminEMail: tenantConfig.CustomerAdminEMail, reportID: reportID, submitContext: submitContext, - reportTime: time.Now().UTC(), } } func (report *ReportEventReceiver) Submit(ctx context.Context, opaSessionObj *cautils.OPASessionObj) error { ctx, span := otel.Tracer("").Start(ctx, "reportEventReceiver.Submit") defer span.End() + report.reportTime = time.Now().UTC() if report.customerGUID == "" { logger.L().Ctx(ctx).Error("failed to publish results. Reason: Unknown account ID. Run kubescape with the '--account ' flag. Contact ARMO team for more details") return nil