Skip to content

Add attributes filter to scan result policies

Martin Čavoj requested to merge 397088-fe-create-attribute-filtering into master

What does this MR do and why?

This MR adds attributes filter to scan result policies. It depends on BE: Support new Attribute filtering options (#399117 - closed) and Release sec policy vulnerability attributes filter (!128713 - merged).

Screenshots or screen recordings

Recording

attribute_filter

Screenshot

CleanShot_2023-08-08_at_13.49.34_2x

How to set up and validate locally

  1. Ensure the GitLab Ultimate license is enabled
  2. Navigate to a project/group => Security & Compliance => Policies => New policy => Scan result policy
  3. Verify the filter is hidden
  4. Choose License Scan
  5. Verify the filter is hidden
  6. Choose Security Scan
  7. Verify the filter can be changed and the yaml is updated appropriately
  8. Navigate to yaml mode, make changes to values to a value that does exist, navigate to rule mode and ensure the description has been updated
  9. Create the policy, edit it, verify the description is assigned the appropriate values

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 #397088 (closed)

Edited by Martin Čavoj

Merge request reports