MR widgets do not show when reports are generated only in downstream pipelines

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When a pipeline triggers downstream pipelines, the security MR Widget does not show if the security scanners do not run in the main pipeline but only in the child pipelines.

Steps to reproduce

Create a pipeline that does nothing else than trigger a child pipeline. In this child pipeline, run the SAST template.

Example Project

gl-demo-ultimate-odupre/public/iac-terraform-multi-environments!3

What is the current bug behavior?

The MR widgets do not show.

What is the expected correct behavior?

The MR widgets should show no matter where the security (or performance, or quality) reports are produced.

Output of checks

This bug happens on GitLab.com

cc @minac

FYI: https://gitlab.slack.com/archives/C8S0HHM44/p1706540311487409?thread_ts=1704295381.953209&cid=C8S0HHM44

Edited by 🤖 GitLab Bot 🤖