Skip to content

Find, verify, and analyze leaked credentials

Order GitLab repos by ID (#3047)

Cody Rose1a734420882f
diff --git a/pkg/sources/gitlab/gitlab.go b/pkg/sources/gitlab/gitlab.go
index a69baee45..bcc49eee4 100644
--- a/pkg/sources/gitlab/gitlab.go
+++ b/pkg/sources/gitlab/gitlab.go
@@ -450,8 +450,8 @@ func (s *Source) getAllProjectRepos(
}
const (
- orderBy = "last_activity_at"
- paginationLimit = 100 // Default is 20, max is 100.
+ orderBy = "id" // TODO: Use keyset pagination (https://docs.gitlab.com/ee/api/rest/index.html#keyset-based-pagination)
+ paginationLimit = 100 // Default is 20, max is 100.
)
listOpts := gitlab.ListOptions{PerPage: paginationLimit}