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_policy
feature 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 branches
and thebranch_type: target_protected
yaml is added - Verify a user can select
target default branch
and thebranch_type: target_default
yaml is added - Navigate to a project => Secure => Policies => New policy => Scan execution policy
- Verify a user can select
target all protected branches
and thebranch_type: target_protected
yaml is added - Verify a user can select
target all default branches
and thebranch_type: target_default
yaml 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