Skip to content

Add validation for fallback_behavior

Alexander Turinske requested to merge 451662-validate-yaml into master

What does this MR do and why?

Add validation for fallback_behavior

  • disable rule mode for invalid values

Changelog: changed

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.

valid invalid
image image

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 => Merge request approval policy (example)
  3. Navigate to yaml, change fallback_behavior to something invalid

Related to #451662 (closed)

Merge request reports