Skip to content

Add security report time window to policy editor

What does this MR do and why?

With Merge Request Approval Policy Time Window (#525509) we want to add a new option in MR approval policy to set a time window for selecting the target branch comparison pipeline for MR. This will enable comparisons against the latest pipeline with security reports created within a specified time range, rather than always waiting for the most recent baseline run to complete.

This MR adds documentation and introduces the field in the frontend. The feature is split into 3 MRs:

References

Screenshots or screen recordings

Screenshot_2025-10-05_at_6.44.00_PM

How to set up and validate locally

  • Create a project/group
  • Enable approval_policy_time_window feature flag
  • Create a new MR approval policy from Secure->Policies
  • Go to Advanced -> Edge case settings -> Time window

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #525509

Edited by Sashi Kumar Kumaresan

Merge request reports

Loading