Skip to content

Fix: incorrect security status counts

What does this MR do?

In the project security status widget on the group security dashboard, we were showing the count of vulnerabilities found in all default branch pipelines, but we should have been showing only the count for the latest pipeline.

This commit updates our query to only fetch vulnerabilities from the latest pipeline.

#119020

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports