Gitlab started enforcing "Authorized groups and projects". Unless you whitelist your repo, this will break. I had the same issue and worked after whitelisting the repo/subgroup(s).
Link - https://about.gitlab.com/blog/2025/04/18/a-guide-to-the-breaking-changes-in-gitlab-18-0/