[go: up one dir, main page]

bug: hides virtual registry scopes for project deploy tokens

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
image image

How to set up and validate locally

  1. Navigate to a project's settings > Repository > Deploy Tokens
  2. Create a new deploy token
  3. Verify that the "Read virtual registry" and "Write virtual registry" scopes are not visible
  4. Navigate to a group's settings > Repository > Deploy Tokens
  5. Create a new deploy token
  6. 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 🤖

Merge request reports

Loading