Add check for any branch allows collaboration to LFS upload access
What does this MR do and why?
An "Access forbidden. Check your access level" error is thrown when pushing LFS object to a contributor's branch on a fork.
This MR checks if any project_branch_allows_collaboration to potentially allow the upload.
Contributes to #338240 (closed)
How to set up and validate locally
- Create a project
- Create a fork of the project
- Create an MR from fork -> parent, with "Allow commits from members who can merge to the target branch." checked
- Have
git lfs
installed and add a file. - As a member of the parent, but not the fork, try to push a commit to the fork's branch from the CLI.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Gavin Hinfey