Skip to content

Allow guests to push (to certain refs)

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

I want to allow guests to push to a project's repository. I don't want them to have to request access first. And I only want to allow them to push to certain refs (but I need a hook to verify that the pushes are otherwise correct, so I can let the hook enforce this too).

I notice that there is a per-project setting, "Repository: View and edit files in this project", which I have set to "Everyone with access". Since this is an internal project, I assumed that would be any user. But apparently, it's not.

Proposal

Option 1: Add an option to "Repository: View and edit files in this project", which is "Every user on this Gitlab instance" (or some less clumsy phrasing of the same).

Option 2: Add a separate option for "publicly pushable branches" (except the refs I want people to push to aren't actually branches, so that wouldn't quite work for me).

Use cases

We want to allow any user to push to a synthetic meta-ref. We use these to implement our monorepo with git submodules.

Feature checklist

Make sure these are completed before closing the issue, with a link to the relevant commit.

Edited by 🤖 GitLab Bot 🤖