Skip to content

Add fields to `PipelineSecurityReportFinding` GraphQL type

Based on this spike #348282 (closed) we propose to add the fields captured in the schema below to the PipelineSecurityReportFinding:

  extend type PipelineSecurityReportFinding {
    descriptionHtml: String!
  }

This will make sure that the GraphQL API returns all the data that is currently showing within the pipeline finding's modal.

Implementation Plan

Verification

To verify this issue, use a GraphQL query to confirm that the descriptionHtml field is available:

query {
  project(fullPath:"<project path>") {
    pipeline(iid:"<pipeline iid>") {
      securityReportFindings(first:1) {
        nodes {
          reportType
          descriptionHtml
        }
      }
    }
  }
}
Edited by Mehmet Emin INAC