Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
[chore] - remove deprecated types (#2168)
ahrav996a11dcc016
diff --git a/pkg/sources/gitlab/gitlab.go b/pkg/sources/gitlab/gitlab.goindex bfa565388..cbee1e8bc 100644--- a/pkg/sources/gitlab/gitlab.go+++ b/pkg/sources/gitlab/gitlab.go@@ -320,7 +320,7 @@ func (s *Source) getAllProjects(ctx context.Context, apiClient *gitlab.Client) ()listOpts := gitlab.ListOptions{PerPage: paginationLimit}- projectQueryOptions := &gitlab.ListProjectsOptions{OrderBy: gitlab.String(orderBy), ListOptions: listOpts}+ projectQueryOptions := &gitlab.ListProjectsOptions{OrderBy: gitlab.Ptr(orderBy), ListOptions: listOpts}for {userProjects, res, err := apiClient.Projects.ListUserProjects(user.ID, projectQueryOptions)if err != nil {@@ -335,13 +335,13 @@ func (s *Source) getAllProjects(ctx context.Context, apiClient *gitlab.Client) (listGroupsOptions := gitlab.ListGroupsOptions{ListOptions: listOpts,- AllAvailable: gitlab.Bool(false), // This actually grabs public groups on public GitLab if set to true.- TopLevelOnly: gitlab.Bool(false),- Owned: gitlab.Bool(false),+ AllAvailable: gitlab.Ptr(false), // This actually grabs public groups on public GitLab if set to true.+ TopLevelOnly: gitlab.Ptr(false),+ Owned: gitlab.Ptr(false),}const cloudBaseURL = "https://gitlab.com/"if s.url != cloudBaseURL {- listGroupsOptions.AllAvailable = gitlab.Bool(true)+ listGroupsOptions.AllAvailable = gitlab.Ptr(true)}var groups []*gitlab.Group@@ -360,8 +360,8 @@ func (s *Source) getAllProjects(ctx context.Context, apiClient *gitlab.Client) (for _, group := range groups {listGroupProjectOptions := &gitlab.ListGroupProjectsOptions{ListOptions: listOpts,- OrderBy: gitlab.String(orderBy),- IncludeSubGroups: gitlab.Bool(true),+ OrderBy: gitlab.Ptr(orderBy),+ IncludeSubGroups: gitlab.Ptr(true),}for {grpPrjs, res, err := apiClient.Groups.ListGroupProjects(group.ID, listGroupProjectOptions)