From b7c374a2a42ce8907cd36a11a67d817efe952112 Mon Sep 17 00:00:00 2001 From: Andrei Predoiu <5424946+Andrei-Predoiu@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:14:07 +0200 Subject: [PATCH] Wrong loglevel --- dependabot/dependabot.go | 2 +- static-analysis.datadog.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 static-analysis.datadog.yml diff --git a/dependabot/dependabot.go b/dependabot/dependabot.go index 2a4d679..72fb3fa 100644 --- a/dependabot/dependabot.go +++ b/dependabot/dependabot.go @@ -181,7 +181,7 @@ func gatherUpdates(wg *sync.WaitGroup, entityCount *atomic.Int32, ctx context.Co fileContent, directoryContent, resp, err := client.Repositories.GetContents(context.Background(), repoInfo.repoOwner, repoInfo.repoName, pathInRepo, options) if err != nil { if resp != nil && resp.StatusCode == 404 { - log.Error().Err(err).Msgf("file not found %s", repoInfo.repoName) + log.Warn().Err(err).Msgf("file not found %s", repoInfo.repoName) return } log.Error().Err(err).Msgf("could not parseRepoContent %s", repoInfo.repoName) diff --git a/static-analysis.datadog.yml b/static-analysis.datadog.yml new file mode 100644 index 0000000..df7fc1f --- /dev/null +++ b/static-analysis.datadog.yml @@ -0,0 +1,4 @@ +schema-version: v1 +rulesets: + - go-best-practices + - go-security