Code Quality report is visible in Pipeline Tab, but not in MR widget

Problem to solve

Hello Team, please help me to solve the issue with Code Quality report and MR widget:

Code Quality report is shown on a pipeline tab, but not in the MR widget
(but the artifact is present on both default branch and a source branch)

Steps to reproduce

I follow this documentation page:

Configuration

# .gitlab-ci.yml
# generated with python - because the repo is monorepo with lots of applications

...

code_quality:{lowerName}:
  stage: security-scan
  variables:
    <<: *variables_{lowerName}
    SONAR_HOST_URL: {env_sonar_host_url}
    SONAR_LOGIN: {env_sonar_login}
  script:
  - |
    cd {name}
    task code-quality-report
  tags:
  - runner-preprod
  allow_failure: true
  dependencies:
  - sonarqube:{lowerName}
  needs:
  - sonarqube:{lowerName}
  rules:
  - *rules_global
  - *rules_{lowerName}_build
  interruptible: true
  artifacts:
    reports:
      codequality: $CI_PROJECT_DIR/{name}/gl-code-quality-report.json

...

I have a setup with a monorepo and downstream pipelines, so I upload the codequality report to the app folder under the $CI_PROJECT_DIR - Could it be the root cause?

# gl-code-quality-report.json

[
  {
    "description": "Refactor your code not to use hardcoded absolute paths or URIs.",
    "fingerprint": "12345678",
    "severity": "minor",
    "check_name": "csharpsquid:S1075",
    "location": {
      "path": "General/DummyMicroservice/DummyMicroservice/Program.cs",
      "lines": {
        "begin": 20
      }
    }
  }
]

I can see artifacts in my default branch and a feature branch

Versions

  • GitLab.com SaaS - Premium

Runner:

  • gitlab-runner --version
    Version: 17.6.0
    Git revision: 374d34fd
    Git branch: 17-6-stable
    GO version: go1.22.7
    OS/Arch: linux/amd64