Skip to content

Commit

Permalink
Fill xsc version field by calling xscVersion endpoint (#689)
Browse files Browse the repository at this point in the history
* Fill xsc version field by calling xscVersion endpoint
  • Loading branch information
orz25 authored Apr 26, 2024
1 parent 23fde69 commit 54d0cfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scanrepository/scanrepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ func (cfp *ScanRepositoryCmd) scanAndFixBranch(repository *utils.Repository) (er
if cfp.analyticsService.GetMsi() != "" {
// MSI is passed to XrayGraphScanParams, so it can be later used by other analytics events in the scan phase
cfp.scanDetails.XrayGraphScanParams.MultiScanId = cfp.analyticsService.GetMsi()
cfp.scanDetails.XrayGraphScanParams.XscVersion, err = cfp.analyticsService.XscManager().GetVersion()
if err != nil {
return
}
}

for i := range repository.Projects {
Expand Down

0 comments on commit 54d0cfe

Please sign in to comment.