From 141ad17ece0d27472c2eaec2cf8ea40ffe32f514 Mon Sep 17 00:00:00 2001 From: shm12 Date: Thu, 9 Jun 2022 16:42:39 +0300 Subject: [PATCH] Fixed web URL in git repo scanning --- core/pkg/resultshandling/reporter/v2/reporteventreceiver.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go index 29018b1b..e4f1ea7c 100644 --- a/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go +++ b/core/pkg/resultshandling/reporter/v2/reporteventreceiver.go @@ -93,7 +93,11 @@ func (report *ReportEventReceiver) GetURL() string { q := u.Query() if report.customerAdminEMail != "" || report.token == "" { // data has been submitted - u.Path = fmt.Sprintf("configuration-scanning/%s", report.clusterName) + if report.clusterName != "" { + u.Path = fmt.Sprintf("configuration-scanning/%s", report.clusterName) + } else { + u.Path = fmt.Sprintf("repositories-scan/%s", report.reportID) + } } else { u.Path = "account/sign-up" q.Add("invitationToken", report.token)