Draft: Add GitLab vendor-specific security scan metrics

What does this MR do?

Introduces CountGitlabSecurityScansMetric that counts security scans specifically from GitLab scanners by filtering on vulnerability_scanner.vendor == 'GitLab'.

Why?

Addresses https://gitlab.com/gitlab-com/request-for-help/-/issues/3535 where existing metrics include both GitLab and 3rd party scanner executions, making it hard to differentiate GitLab scanner adoption.

Changes

  • New metric class extending CountSecurityScansMetric
  • Joins with vulnerability_scanners table
  • Filters for vendor = 'GitLab'
  • Includes RSpec tests

Closes https://gitlab.com/gitlab-com/request-for-help/-/issues/3535

Edited by Gregory Havenga

Merge request reports

Loading