Allow deletion of non-main protected branches with bypass_settings

What does this MR do and why?

Allow deletion of non-main protected branches with bypass_settings

This change updates the protected branch deletion to bypass if security policy bypass_settings are configured with service accounts or access tokens.

EE: true Changelog: changed

References

Screenshots or screen recordings

Before After

How to set up and validate locally

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.

Related to #578753

Merge request reports

Loading