Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 8, 2023
1 parent d74eec0 commit ba49d30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xray/services/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xray/services/xsc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion xray/services/xscScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba49d30

Please sign in to comment.