Add flexible scan execution branch selections
What does this MR do and why?
Add flexible scan execution branch selections
- add target_protected
- add target_default
- add both for projects and groups
- hide behind feature flag
Changelog: added
EE: true
References
Screenshots or screen recordings
| Namespace type | w/ ff | w/o ff |
|---|---|---|
| Project | ![]() |
![]() |
| Group | ![]() |
![]() |
How to set up and validate locally
- Upload a GitLab Ultimate license
- Enable the
flexible_scan_execution_policyfeature flag in http://gdk.test:3443/rails/features - Navigate to a project => Secure => Policies => New policy => Scan execution policy
- Verify a user can select
target all protected branchesand thebranch_type: target_protectedyaml is added - Verify a user can select
target default branchand thebranch_type: target_defaultyaml is added - Navigate to a project => Secure => Policies => New policy => Scan execution policy
- Verify a user can select
target all protected branchesand thebranch_type: target_protectedyaml is added - Verify a user can select
target all default branchesand thebranch_type: target_defaultyaml is added
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 #541370 (closed)
Edited by Alexander Turinske



