Skip to content

Commit 54d0cfe

Browse files
authored
Fill xsc version field by calling xscVersion endpoint (#689)
* Fill xsc version field by calling xscVersion endpoint
1 parent 23fde69 commit 54d0cfe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scanrepository/scanrepository.go

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ func (cfp *ScanRepositoryCmd) scanAndFixBranch(repository *utils.Repository) (er
9494
if cfp.analyticsService.GetMsi() != "" {
9595
// MSI is passed to XrayGraphScanParams, so it can be later used by other analytics events in the scan phase
9696
cfp.scanDetails.XrayGraphScanParams.MultiScanId = cfp.analyticsService.GetMsi()
97+
cfp.scanDetails.XrayGraphScanParams.XscVersion, err = cfp.analyticsService.XscManager().GetVersion()
98+
if err != nil {
99+
return
100+
}
97101
}
98102

99103
for i := range repository.Projects {

0 commit comments

Comments
 (0)