Skip to content

Add allowed vulnerabilities number information to policy drawer

What does this MR do and why?

This MR updates the policy drawer and adds an information about the allowed vulnerabilities in the summary.

Screenshots or screen recordings

Any number:

CleanShot_2023-04-27_at_14.54.02_2x

More than:

CleanShot_2023-04-27_at_14.54.55_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. Create a new policy, setting either 0 or any non-zero value as allowed vulnerabilities
  4. Click on the new policy in the policies list
  5. Depending on the value of allowed vulnerabilities, ensure the summary is showing either any or more than X in the policy drawer

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

Edited by Martin Čavoj

Merge request reports

Loading