Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Wrap errors when fail to fetch repo or gist (#4259)
Kashif Khanb4e1b59a6f9a
diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.goindex 6a2ae00c2..e45722d8f 100644--- a/pkg/sources/github/github.go+++ b/pkg/sources/github/github.go@@ -474,7 +474,7 @@ func (s *Source) ensureRepoInfoCache(ctx context.Context, repo string, reporter}if err != nil {- return repo, fmt.Errorf("failed to fetch gist")+ return repo, fmt.Errorf("failed to fetch gist: %w", err)}s.cacheGistInfo(gist)@@ -488,7 +488,7 @@ func (s *Source) ensureRepoInfoCache(ctx context.Context, repo string, reportercontinue}if err != nil {- return repo, fmt.Errorf("failed to fetch repository")+ return repo, fmt.Errorf("failed to fetch repository: %w", err)}s.cacheRepoInfo(ghRepo)break