Skip to content

Commit

Permalink
dont overwrite msi for testings purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Aug 31, 2023
1 parent 349551c commit 6822658
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xray/manager/xsc.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ func (xsc *XscServicesManger) SetClient(client *jfroghttpclient.JfrogHttpClient)
func (xsc *XscServicesManger) ScanGraph(params *scan.XrayGraphScanParams) (scanId string, err error) {
log.Debug("Scanning graph using XSC service...")
scanService := scan.NewXscScanService(xsc.client, xsc.config.GetServiceDetails())
if params.MultiScanId, err = scanService.SendScanContext(params.XscGitInfoContext); err != nil {
multiScanId, err := scanService.SendScanContext(params.XscGitInfoContext)
if err != nil {
// Don't fail the entire scan when failed to send XscGitInfoContext
log.Warn("failed to send xsc git info context with the following error: ", err.Error())
}
if multiScanId != "" {
params.MultiScanId = multiScanId
}
return scanService.ScanGraph(params)
}

Expand Down

0 comments on commit 6822658

Please sign in to comment.