Skip to content

Commit

Permalink
Merge branch 'dev' into improve-distribution-polling
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 authored Nov 28, 2024
2 parents 96960a0 + ecc791f commit fbbeae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
const (
Development = "development"
Agent = "jfrog-client-go"
Version = "1.48.0"
Version = "1.48.1"
)

const xrayDevVersion = "3.x-dev"
Expand Down
6 changes: 3 additions & 3 deletions xray/services/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func createScanGraphQueryParams(scanParams XrayGraphScanParams) string {
}
}

if scanParams.XscVersion != "" {
if scanParams.XscVersion != "" && scanParams.MultiScanId != "" {
params = append(params, multiScanIdParam+scanParams.MultiScanId)
gitInfoContext := scanParams.XscGitInfoContext
if gitInfoContext != nil {
Expand Down Expand Up @@ -112,8 +112,8 @@ func (ss *ScanService) ScanGraph(scanParams XrayGraphScanParams) (string, error)
}
url := ss.XrayDetails.GetUrl() + scanGraphAPI

// When XSC is enabled, modify the URL.
if scanParams.XrayVersion != "" && scanParams.XscVersion != "" {
// When XSC is enabled and MultiScanId is provided, modify the URL to use XSC scan graph (analytics enabled)
if scanParams.XrayVersion != "" && scanParams.XscVersion != "" && scanParams.MultiScanId != "" {
url = utils.XrayUrlToXscUrl(ss.XrayDetails.GetUrl(), scanParams.XrayVersion) + XscGraphAPI
}
url += createScanGraphQueryParams(scanParams)
Expand Down

0 comments on commit fbbeae3

Please sign in to comment.