From 7ca5d7138b2499d9f265b6e7dd8bbdb98bd5984e Mon Sep 17 00:00:00 2001 From: Omer Zidkoni <50792403+omerzi@users.noreply.github.com> Date: Sun, 3 Dec 2023 15:06:09 +0200 Subject: [PATCH] Update dependencies (#593) --- go.mod | 4 ++-- go.sum | 4 ++-- utils/params.go | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 0679f9129..2cedc9266 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/jfrog/build-info-go v1.9.16 github.com/jfrog/froggit-go v1.14.3 github.com/jfrog/gofrog v1.3.2 - github.com/jfrog/jfrog-cli-core/v2 v2.47.0 + github.com/jfrog/jfrog-cli-core/v2 v2.47.1 github.com/jfrog/jfrog-client-go v1.35.0 github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible github.com/owenrumney/go-sarif/v2 v2.3.0 @@ -118,7 +118,7 @@ require ( gopkg.in/warnings.v0 v0.1.2 // indirect ) -replace github.com/jfrog/jfrog-cli-core/v2 => github.com/omerzi/jfrog-cli-core/v2 v2.15.3-0.20231203082608-79dad2e13f8c +// replace github.com/jfrog/jfrog-cli-core/v2 => github.com/jfrog/jfrog-cli-core/v2 v2.15.3-0.20231203082608-79dad2e13f8c // replace github.com/jfrog/build-info-go => github.com/jfrog/build-info-go v1.8.9-0.20231119150101-5cfbe8fca39e diff --git a/go.sum b/go.sum index ffcbbe725..f93cde5bb 100644 --- a/go.sum +++ b/go.sum @@ -882,6 +882,8 @@ github.com/jfrog/gofrog v1.3.2 h1:TktKP+PdZdxjkYZxWWIq4DkTGSYtr9Slsy+egZpEhUY= github.com/jfrog/gofrog v1.3.2/go.mod h1:AQo5Fq0G9nDEF6icH7MYQK0iohR4HuEAXl8jaxRuT6Q= github.com/jfrog/jfrog-apps-config v1.0.1 h1:mtv6k7g8A8BVhlHGlSveapqf4mJfonwvXYLipdsOFMY= github.com/jfrog/jfrog-apps-config v1.0.1/go.mod h1:8AIIr1oY9JuH5dylz2S6f8Ym2MaadPLR6noCBO4C22w= +github.com/jfrog/jfrog-cli-core/v2 v2.47.1 h1:bER/Jzovpp4v+zp5wf0n4OPYZGQNGS2KQOVWeNBjGZU= +github.com/jfrog/jfrog-cli-core/v2 v2.47.1/go.mod h1:RFQwrZ1qXAQ+X0xfuzxBBDIYuRnDsPy12xlyjuOpUog= github.com/jfrog/jfrog-client-go v1.35.0 h1:VTyrR/jFlWInRdGYswa2fwFc1Thsh6eGMnHuqhDVh7s= github.com/jfrog/jfrog-client-go v1.35.0/go.mod h1:cG0vdKXbyfupKgSYmwA5FZPco6zSfyJi3eEYOxuqm/k= github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible h1:jdpOPRN1zP63Td1hDQbZW73xKmzDvZHzVdNYxhnTMDA= @@ -957,8 +959,6 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/nwaples/rardecode v1.1.0 h1:vSxaY8vQhOcVr4mm5e8XllHWTiM4JF507A0Katqw7MQ= github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= -github.com/omerzi/jfrog-cli-core/v2 v2.15.3-0.20231203082608-79dad2e13f8c h1:YsYDe1y8Nnn/UEOBmmwMQ8sSImZ45lJ7teSOHtzl/QI= -github.com/omerzi/jfrog-cli-core/v2 v2.15.3-0.20231203082608-79dad2e13f8c/go.mod h1:RFQwrZ1qXAQ+X0xfuzxBBDIYuRnDsPy12xlyjuOpUog= github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= github.com/owenrumney/go-sarif v1.1.1/go.mod h1:dNDiPlF04ESR/6fHlPyq7gHKmrM0sHUvAGjsoh8ZH0U= github.com/owenrumney/go-sarif/v2 v2.3.0 h1:wP5yEpI53zr0v5cBmagXzLbHZp9Oylyo3AJDpfLBITs= diff --git a/utils/params.go b/utils/params.go index 9c6509824..a444c26a7 100644 --- a/utils/params.go +++ b/utils/params.go @@ -681,6 +681,8 @@ func readConfigFromTarget(client vcsclient.VcsClient, gitParamsFromEnv *Git) (co // Handle different HTTP status codes switch statusCode { + case http.StatusOK: + log.Info(fmt.Sprintf("Successfully downloaded %s file from <%s/%s/%s>", FrogbotConfigFile, repoOwner, repoName, branch)) case http.StatusNotFound: log.Debug(fmt.Sprintf("The %s file wasn't recognized in <%s/%s>", gitFrogbotConfigPath, repoOwner, repoName)) // If .frogbot/frogbot-config.yml isn't found, return an ErrMissingConfig