Skip to content

Pull Replication from GitLab does not work if not member of source group #20056

Closed as not planned
@aschaber1

Description

Hello,

I'm trying to pull replicate images from a public gitlab instance to a local harbor instance, but it does not find the images (hence the job ends with 0 Tasks).

I believe I tracked this down to:
The filter membership=true or membership=1 causes to return only projects of which one is a member. But in case of public repos/groups this is usually not the case.

My proposal is to remove the membership=true flag.

urlAPI := fmt.Sprintf("%s/api/v4/projects?membership=1&per_page=50", c.url)

urlAPI := fmt.Sprintf("%s/api/v4/projects?search=%s&membership=true&search_namespaces=true&per_page=50", c.url, name)

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions