bug: hides virtual registry scopes for project deploy tokens
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
- fixes #538931 (closed)
- Adds token type check for virtual registry scope for deploy tokens
- Adds test cases for same
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Navigate to a project's settings > Repository > Deploy Tokens
- Create a new deploy token
- Verify that the "Read virtual registry" and "Write virtual registry" scopes are not visible
- Navigate to a group's settings > Repository > Deploy Tokens
- Create a new deploy token
- Verify that the "Read virtual registry" and "Write virtual registry" scopes are visible (if dependency proxy is enabled)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by 🤖 GitLab Bot 🤖

