diff --git a/go.mod b/go.mod index a554e63..563e168 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,10 @@ go 1.23.2 replace github.com/deepfence/agent-plugins-grpc => ./agent-plugins-grpc require ( - github.com/deepfence/YaraHunter v0.0.0-20241105073154-c856e0077615 + github.com/deepfence/YaraHunter v0.0.0-20241112093056-346816ab4553 github.com/deepfence/agent-plugins-grpc v0.0.0-00010101000000-000000000000 - github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20241104185440-230d22a0d173 - github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20241104185440-230d22a0d173 + github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20241112090544-f42aabb5dc7f + github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20241112090544-f42aabb5dc7f github.com/deepfence/match-scanner v0.0.0-20241104190155-00799508ab6c github.com/fatih/color v1.16.0 github.com/olekukonko/tablewriter v0.0.5 diff --git a/go.sum b/go.sum index a2abc26..4d26bb5 100644 --- a/go.sum +++ b/go.sum @@ -40,12 +40,12 @@ github.com/containerd/typeurl/v2 v2.1.1/go.mod h1:IDp2JFvbwZ31H8dQbEIY7sDl2L3o3H github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deepfence/YaraHunter v0.0.0-20241105073154-c856e0077615 h1:Ehogrr34CwfEfSkDMU7hyWQd7ktK1detTFXCsK80DdM= -github.com/deepfence/YaraHunter v0.0.0-20241105073154-c856e0077615/go.mod h1:znXzM6Q6LS31gRpcWntuPuvNx+g4yzojw2tWLv17b0M= -github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20241104185440-230d22a0d173 h1:B6ZSc/dXVg+5zloz1BbBalITTLx3h807ZU/XBAooIWY= -github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20241104185440-230d22a0d173/go.mod h1:UkHg/qLuPVnTqx4fPwmc2DhlNp5isdYwIxQ63B9JB4o= -github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20241104185440-230d22a0d173 h1:nAT8FbII+IDgdYQFZV/UaaH3L5k6wexa9haegI4d5fI= -github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20241104185440-230d22a0d173/go.mod h1:QdyXNUGNYGPMj8ls9R4N1y/IzmM7LrBQSBC/QuYCX+U= +github.com/deepfence/YaraHunter v0.0.0-20241112093056-346816ab4553 h1:9IFA7jGc17AiFHUUzqFM/yS59ac91rVTZ/b1bbdcfdc= +github.com/deepfence/YaraHunter v0.0.0-20241112093056-346816ab4553/go.mod h1:ewY/o5Ht0AV3i//2mImpDEVZftrRZHGCqv/+1YcNrf4= +github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20241112090544-f42aabb5dc7f h1:XI49+zaunyxw7tlUzS8DHzf9PTvDp+/CQDF/xcyaxVU= +github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20241112090544-f42aabb5dc7f/go.mod h1:UkHg/qLuPVnTqx4fPwmc2DhlNp5isdYwIxQ63B9JB4o= +github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20241112090544-f42aabb5dc7f h1:819FVayVu5J10JSXfIxl75kiQDF73/aTxkOrImtviNU= +github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20241112090544-f42aabb5dc7f/go.mod h1:QdyXNUGNYGPMj8ls9R4N1y/IzmM7LrBQSBC/QuYCX+U= github.com/deepfence/match-scanner v0.0.0-20241104190155-00799508ab6c h1:0nXgsUJAvP3tgENagcuKlzb92AZFbBAONSE1QmEJzYc= github.com/deepfence/match-scanner v0.0.0-20241104190155-00799508ab6c/go.mod h1:mrnCFKtEOzLlNUkagkwQeWWdPtrVIZLc7nbEX/7PbaU= github.com/deepfence/vessel v0.13.0 h1:QRtjtuvSXdjrFt4Nb0SE8FO4n7aUtblFY6am/c9oeIQ= diff --git a/output/publish-to-console.go b/output/publish-to-console.go index 15cabd0..ba178fe 100644 --- a/output/publish-to-console.go +++ b/output/publish-to-console.go @@ -75,6 +75,7 @@ func buildClient() (*http.Client, error) { tlsConfig := &tls.Config{RootCAs: x509.NewCertPool(), InsecureSkipVerify: true} client := &http.Client{ Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: tlsConfig, DisableKeepAlives: false, MaxIdleConnsPerHost: 1024,