Skip to content

Find, verify, and analyze leaked credentials

shadow context (#4549)

Cody Rosecb6aeefd6e24
diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go
index b11740b82..cf0b8fc79 100644
--- a/pkg/sources/github/github.go
+++ b/pkg/sources/github/github.go
@@ -461,7 +461,7 @@ func (s *Source) Enumerate(ctx context.Context, reporter sources.UnitReporter) e
// Final filter check - only include repositories that pass the filter
if s.filteredRepoCache.wantRepo(repoName) {
- ctx = context.WithValue(ctx, "repo", repo)
+ ctx := context.WithValue(ctx, "repo", repo)
repo, err := s.ensureRepoInfoCache(ctx, repo, &unitErrorReporter{reporter})
if err != nil {