Skip to content

Commit

Permalink
fix: Run for gitlab private repos
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriela Gutierrez <[email protected]>
  • Loading branch information
gabibguti committed Oct 23, 2023
1 parent d0cefa5 commit 7641aa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clients/gitlabrepo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ var errRepoAccess = errors.New("repo inaccessible")

// Raise an error if repository access level is private or disabled.
func checkRepoInaccessible(repo *gitlab.Project) error {
if (repo.RepositoryAccessLevel == gitlab.PrivateAccessControl) ||
(repo.RepositoryAccessLevel == gitlab.DisabledAccessControl) {
if repo.RepositoryAccessLevel == gitlab.DisabledAccessControl {
return fmt.Errorf("%w: %s access level %s",
errRepoAccess, repo.PathWithNamespace, string(repo.RepositoryAccessLevel),
)
Expand Down

0 comments on commit 7641aa1

Please sign in to comment.