From 7f2932112ea3214f57bca44fe4631935acb01b99 Mon Sep 17 00:00:00 2001 From: delarea Date: Mon, 21 Aug 2023 16:21:12 +0300 Subject: [PATCH] Update deps --- go.mod | 2 +- go.sum | 4 ++-- xray/audit/commonutils.go | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 5a0974a8a..42cd90552 100644 --- a/go.mod +++ b/go.mod @@ -93,7 +93,7 @@ require ( gopkg.in/warnings.v0 v0.1.2 // indirect ) -replace github.com/jfrog/jfrog-client-go => github.com/eyaldelarea/jfrog-client-go v1.28.4-0.20230820174719-94e1af28594e +replace github.com/jfrog/jfrog-client-go => github.com/eyaldelarea/jfrog-client-go v1.28.4-0.20230821131943-b6162daf2375 replace github.com/jfrog/build-info-go => github.com/jfrog/build-info-go v1.8.9-0.20230820165857-52ff32c4d8eb diff --git a/go.sum b/go.sum index 83309ecbc..faa23bb67 100644 --- a/go.sum +++ b/go.sum @@ -101,8 +101,8 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/eyaldelarea/jfrog-client-go v1.28.4-0.20230820174719-94e1af28594e h1:zj2O3bFMukOejV/eIcYwD1pxnnHz5NomBbhPzjxru7o= -github.com/eyaldelarea/jfrog-client-go v1.28.4-0.20230820174719-94e1af28594e/go.mod h1:cstHMVqu11rn4TadtCBHrcuL+KcJ94kjSmMQSWMB61I= +github.com/eyaldelarea/jfrog-client-go v1.28.4-0.20230821131943-b6162daf2375 h1:CRYTjbBZO1JH4KHJ1ISIOlL0lFuEMoKblVlACcjrK5s= +github.com/eyaldelarea/jfrog-client-go v1.28.4-0.20230821131943-b6162daf2375/go.mod h1:cstHMVqu11rn4TadtCBHrcuL+KcJ94kjSmMQSWMB61I= github.com/forPelevin/gomoji v1.1.8 h1:JElzDdt0TyiUlecy6PfITDL6eGvIaxqYH1V52zrd0qQ= github.com/forPelevin/gomoji v1.1.8/go.mod h1:8+Z3KNGkdslmeGZBC3tCrwMrcPy5GRzAD+gL9NAwMXg= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= diff --git a/xray/audit/commonutils.go b/xray/audit/commonutils.go index ce1ebcfac..2be7fa10a 100644 --- a/xray/audit/commonutils.go +++ b/xray/audit/commonutils.go @@ -58,16 +58,14 @@ func Audit(modulesDependencyTrees []*xrayUtils.GraphNode, progress ioUtils.Progr err = errorutils.CheckErrorf("No dependencies were found. Please try to build your project and re-run the audit command.") return } - if progress != nil { progress.SetHeadlineMsg("Scanning for vulnerabilities") } - // Optional set tech type for XSC context + // Optional, set technology for XSC context xscScanContextDetails := scanGraphParams.XrayGraphScanParams().XscGitInfoContext if xscScanContextDetails != nil { xscScanContextDetails.Technologies = []string{technology.ToString()} } - for _, moduleDependencyTree := range modulesDependencyTrees { scanGraphParams.XrayGraphScanParams().Graph = moduleDependencyTree scanMessage := fmt.Sprintf("Scanning %d %s dependencies", len(scanGraphParams.XrayGraphScanParams().Graph.Nodes), technology)