Add template selection to policy drawer scan execution actions
What does this MR do and why?
Add template selection to scan execution actions
- add criteria
- only allow one
- only allow 'latest' and 'default'
Changelog: added
EE: true
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Scenario | Screenshot |
---|---|
Latest | |
No template |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Navigate to a project => Secure => Policies => New policy => Scan execution policy
- Enable the feature flag
echo "Feature.enable(:scan_execution_policies_with_latest_templates)" | rails c
- Create a policy with the
latest
security template - Navigate to a project => Secure => Policies
- Select the newly created policy
- Verify the summary is correct
- Select a different scan execution policy without template
- Verify the summary is correct
Related to #415427 (closed)
Edited by Alexander Turinske