Align GraphQL arguments for `Pipeline.securityReportFindings` with `Project.vulnerabilities`

Summary

Currently the queries for Pipeline.securityReportFindings and Project.vulnerabilities has similar arguments:

  • reportType
  • severity

The issue is that they both use different types for them:

argument Project.vulnerabilities type Pipeline.securityReportFindings type
reportType VulnerabilityReportType String
severity VulnerabilitySeverity String

This inconsistency has caused the frontend to have to work around it: https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/assets/javascripts/security_dashboard/components/pipeline/pipeline_vulnerability_report.vue#L21-30

It would be ideal to have the types for both field's arguments.

Implementation Plan

TBD