Add support for branch exceptions in default rule
What does this MR do and why?
This MR is a follow-up for this comment
This MR request adds possibility for a user to add branch_exceptions
for scan result policy
for default_rule
It is now only available on project
level
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Description | Recording |
---|---|
Project level - no exception option default rule | default rule exceptions.mov |
How to set up and validate locally
Enable feature flag
Feature.enable(:security_policies_branch_exceptions)
- Go to a project
- Open Secure -> Policies
- Create new policy or edit existing one
- Select exceptions in initial state
- Select
scan option
inrules
section, make sure selected branch type and exceptions are selected - Go to a group
- Open Secure -> Policies
- Create new policy or edit existing one
- Make sure there is no exceptions option in UI
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.
Related to #418743 (closed)
Edited by Artur Fedorov