Use ALL_PROTECTED_BRANCHES text in rule editor for scan result policies
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR updates the Rule Mode UI for Scan Result Policies to allow users to select All protected branches instead of All branches. This is more accurate as it is consistent with the functionality that actually exists on the backend.
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
- As a project Owner, navigate to Security & Compliance > Policies
- Create a new Scan Result Policy
- Observe that by default the branch selection dropdown says
All protected branchesinstead ofAll branches - Create a merge request for the new scan result policy
- Merge in the merge request
- Navigate back to your original project and navigate back to the Security & Compliance > Policies page
- Click on your new policy and confirm that the text in the sidebar says
all protected branchesinstead ofall branches - Navigate to Settings > Merge Requests and scroll down to the Merge Request Approvals > Security Approvals section.
- Confirm that the
Target Branchcolumn saysAll protected branchesinstead ofAll branches
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sam White





