From ba49d30fa9487112bc3ddb6c34ac6d4f1d3869ae Mon Sep 17 00:00:00 2001 From: delarea Date: Fri, 8 Sep 2023 16:18:43 +0300 Subject: [PATCH] CR --- xray/services/manager.go | 2 +- xray/services/xsc.go | 2 +- xray/services/xscScan.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xray/services/manager.go b/xray/services/manager.go index a6170157c..2ea523743 100644 --- a/xray/services/manager.go +++ b/xray/services/manager.go @@ -6,7 +6,7 @@ import ( "github.com/jfrog/jfrog-client-go/xray/services/utils" ) -// SecurityServiceManager manages JFrog Xray service operations (Xray backend or XSC). +// SecurityServiceManager manages JFrog Xray service operations (Xray or XSC). type SecurityServiceManager interface { // Attributes Client() *jfroghttpclient.JfrogHttpClient diff --git a/xray/services/xsc.go b/xray/services/xsc.go index 43948eea4..8168cb8de 100644 --- a/xray/services/xsc.go +++ b/xray/services/xsc.go @@ -24,7 +24,7 @@ func (xsc *XscServicesManger) SetClient(client *jfroghttpclient.JfrogHttpClient) func (xsc *XscServicesManger) ScanGraph(params *XrayGraphScanParams) (scanId string, err error) { log.Debug("Scanning graph using XSC service...") scanService := NewXscScanService(xsc.client, xsc.config.GetServiceDetails()) - multiScanId, err := scanService.SendScanContext(params.XscGitInfoContext) + multiScanId, err := scanService.SendScanGitInfoContext(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()) diff --git a/xray/services/xscScan.go b/xray/services/xscScan.go index 733d5dc94..701eb49bf 100644 --- a/xray/services/xscScan.go +++ b/xray/services/xscScan.go @@ -31,7 +31,7 @@ func NewXscScanService(client *jfroghttpclient.JfrogHttpClient, details auth.Ser return &XscScanService{ScanService{client: client, XrayDetails: details}} } -func (xsc *XscScanService) SendScanContext(details *XscGitInfoContext) (multiScanId string, err error) { +func (xsc *XscScanService) SendScanGitInfoContext(details *XscGitInfoContext) (multiScanId string, err error) { // XscGitInfoContext is optional if details == nil { return