Search code examples
gitpermissionsgitlab

Making a gitlab repo read only/give members Guest permissions


I have a private repo on GitLab. It is with in a group with other repos that I do not want to change. I want to retire just this repo so the commits and merge requests can be referenced but not pushed to/changed/etc. Read only basically.

If I go to the repo (Project) Settings > Members it lists all the members of the group. There is no way here to set permissions specific to this repo here though. They are inherited from the group member permissions.

I have found I can go to Settings > Repository > Protected branches and add one with '*' and set allowed to merge/push to 'No one'. This doesn't stop merge requests/issues etc though.

Am I missing something or do I have to make a new group and move over the repo so I can then set 'Guest' permissions on that new group's members? There is no way to override the group member permissions at a repo level?

Thank you


Solution

  • Sounds like you want to archive the repository.