Skip to content

Find, verify, and analyze leaked credentials

Correclty set metrics for enumerated orgs (#2757)

ahrav591871977c44
diff --git a/pkg/sources/github/repo.go b/pkg/sources/github/repo.go
index 21c0ee329..f92814da1 100644
--- a/pkg/sources/github/repo.go
+++ b/pkg/sources/github/repo.go
@@ -276,7 +276,7 @@ func (s *Source) processRepos(ctx context.Context, target string, listRepos repo
}
logger.V(2).Info("found repos", "total", numRepos, "num_forks", numForks, "num_orgs", len(uniqueOrgs))
- githubOrgsEnumerated.WithLabelValues(s.name).Set(float64(len(uniqueOrgs)))
+ githubOrgsEnumerated.WithLabelValues(s.name).Add(float64(len(uniqueOrgs)))
return nil
}