Skip to content

Add scan execution action controls

Alexander Turinske requested to merge 359887-scans-action into master

What does this MR do and why?

Add scan execution action controls Alexander Turinske authored 2 minutes ago

  • allow user to add a new action and select a scan type
  • if a user changes the yaml, it is reflected in rule mode
  • Update action label to be dynamic: the first action text should start with 'THEN', the second action text should start with 'AND'

Screenshots or screen recordings

State Screenshot
Only one scan Screen_Shot_2022-08-08_at_10.39.11_PM
Second scan added image
Dropdown image

How to set up and validate locally

  1. Upload a GitLab Ultimate license
  2. Turn on the :scan_execution_rule_mode feature flag
  3. Navigate to a project => Security & Compliance => Policies => New policy => Scan Execution Policy
  4. Verify rule mode scans action is set to DAST
  5. Click the Add action button
  6. Verify the yaml has a new DAST scan added
  7. Navigate to yaml mode
  8. Modify the scan
  9. Navigate to rule mode
  10. Verify the change is reflected

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #359887 (closed)

Edited by Alexander Turinske

Merge request reports

Loading