Skip to content

Commit

Permalink
use diff min version for git repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Dec 13, 2024
1 parent 2a7081e commit a1c11b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xray/services/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const (

scanTechQueryParam = "tech="

gitRepoKeyQueryParam = "git_repo="
gitRepoKeyQueryParam = "git_repo="
MinXrayVersionGitRepoKey = "3.108.0"

XscVersionAPI = "system/version"
)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a1c11b2

Please sign in to comment.