Skip to content

Sync scan_finding approvals for all latest pipelines in MR

Sashi Kumar Kumaresan requested to merge sk/379108-fix-latest-mr-pipeline into master

What does this MR do and why?

While testing Compare results from all pipelines related to c... (#379108 - closed), we found a bug where, if there are more than 1 latest pipelines in MR ($CI_PIPELINE_SOURCE is merge_request_event), approvals are not synced when non-head pipeline is completed before the MR's head pipeline. The feature is still behind a feature flag: multi_pipeline_scan_result_policies

This MR fixes the bug by taking not just the MRs with the pipeline as head_pipeline, but take MRs that has the current pipeline as latest.

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

Loading