From a1c11b2d7b25fb357e37e749b9c433144b897129 Mon Sep 17 00:00:00 2001 From: attiasas Date: Fri, 13 Dec 2024 14:52:38 +0200 Subject: [PATCH] use diff min version for git repo url --- xray/services/scan.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xray/services/scan.go b/xray/services/scan.go index e2be0601e..275544228 100644 --- a/xray/services/scan.go +++ b/xray/services/scan.go @@ -47,7 +47,8 @@ const ( scanTechQueryParam = "tech=" - gitRepoKeyQueryParam = "git_repo=" + gitRepoKeyQueryParam = "git_repo=" + MinXrayVersionGitRepoKey = "3.108.0" XscVersionAPI = "system/version" ) @@ -102,7 +103,7 @@ func createScanGraphQueryParams(scanParams XrayGraphScanParams) string { } func isGitRepoUrlSupported(xrayVersion string) bool { - return clientUtils.ValidateMinimumVersion(clientUtils.Xray, xrayVersion, xscUtils.MinXrayVersionXscTransitionToXray) == nil + return clientUtils.ValidateMinimumVersion(clientUtils.Xray, xrayVersion, MinXrayVersionGitRepoKey) == nil } func (ss *ScanService) ScanGraph(scanParams XrayGraphScanParams) (string, error) {