Skip to content

Fix group deploy token access for Git LFS

What does this MR do and why?

This MR solves #235398 (closed)
The LFS access code validates token project access manually instead of using has_access_to?.
This means it does not work with group deploy tokens.

Screenshots or screen recordings

How to set up and validate locally

  1. Create repo with LFS files
  2. Create group deploy token in the group the repo is in.
  3. Clone repo and git lfs fetch.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Marius Schiffer

Merge request reports

Loading