Skip to content

Create violations and bot message for fail-open policies

What does this MR do and why?

This MR changes logic around fail-open policies to persist violations for these cases so that we can highlight skipped policies in the policy bot message. The violations for fail-open policies are created with a different status so that they don't block the MR with policy mergability check.

Depends on !168222.

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

Fail-closed (current) Mixed fail-open and fail-closed Fail-open
CleanShot_2024-10-10_at_18.30.13_2x CleanShot_2024-10-11_at_10.13.23_2x CleanShot_2024-10-11_at_10.12.28_2x

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #474853

Edited by Martin Čavoj

Merge request reports

Loading