Skip to content

Draft: Remove outdated vulnerability GraphQL argument notes

What does this MR do and why?

Removes outdated (?) usage notes for the clusterId and clusterAgentId arguments of query.Vulnerabilities. Counter to the docs, neither of both arguments is required for Cluster Image Scanning vulnerabilities to get included in the response:

Filter vulnerabilities by cluster_agent_id. Vulnerabilities with a reportType of cluster_image_scanning are only included with this filter.

Query:

{
  project(fullPath: "gitlab-org/protect/demos/demo-cluster") {
    vulnerabilities {
      nodes {
        reportType
      }
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading