Skip to content

Improve ProtectedRefAccess factories

What does this MR do and why?

Improve ProtectedRefAccess factories

The protected ref access classes can be assigned to roles but we currently have no traits for setting these up. This change adds :no_access, :developer_access, and :maintainer_access traits to all protected ref access class's factories.

Also removed a superfluous deploy_key entry which is already included in the CE factory.

All protected_branch and protected_tag associations now utilize the default_access_level: false attribute to prevent creating the default access levels.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports

Loading