Skip to content

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 Screenshot_2024-06-13_at_13.37.49
No template Screenshot_2024-06-13_at_13.37.54

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project => Secure => Policies => New policy => Scan execution policy
  3. Enable the feature flag echo "Feature.enable(:scan_execution_policies_with_latest_templates)" | rails c
  4. Create a policy with the latest security template
  5. Navigate to a project => Secure => Policies
  6. Select the newly created policy
  7. Verify the summary is correct
  8. Select a different scan execution policy without template
  9. Verify the summary is correct

Related to #415427 (closed)

Edited by Alexander Turinske

Merge request reports