Group Access Token cannot access project via git+HTTP when added as a member via a project sharing

Summary

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/365185.

Steps to reproduce

  1. created a top-level group called Team A
  2. created a Group Level Access Token in Team A
  3. created another top-level group called Projects
  4. created Project A with a repo in Projects group
  5. added Team A as a member of Project A

What is the current bug behavior?

  • querying Project A via API using the Group Level Access Token still works. ✅
  • accessing Project A via git+HTTP using the Group Level Access Token fails. 🛑

What is the expected correct behavior?

  • querying Project A via API using the Group Level Access Token still works. ✅
  • accessing Project A via git+HTTP using the Group Level Access Token works. ✅
Assignee Loading
Time tracking Loading