Skip to content

Add validation for approvers with empty array

What does this MR do and why?

Add validation for approvers with empty array in respect to scan result policies.

JSON schema doc for minItems.

Related issue: #351166 (closed)

How to set up and validate locally

  1. Enable scan_result_policy feature flag
  2. Create a security project as described in the docs
  3. Create a new scan result policy with the project owner with any of the approvers with empty array. For instance, user_approvers: [].

MR acceptance checklist

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

Merge request reports