#import "~/graphql_shared/fragments/pageInfoCursorsOnly.fragment.graphql"
#import "../fragments/vulnerability_location.fragment.graphql"

query pipelineFindings(
  $fullPath: ID!
  $pipelineId: ID!
  $first: Int
  $after: String
  $severity: [String!]
  $reportType: [String!]
  $scanner: [String!]
) {
  project(fullPath: $fullPath) {
    pipeline(iid: $pipelineId) {
      securityReportFindings(
        after: $after
        first: $first
        severity: $severity
        reportType: $reportType
        scanner: $scanner
      ) {
        nodes {
          uuid
          name
          description
          confidence
          identifiers {
            externalType
            name
          }
          scanner {
            vendor
          }
          state
          severity
          location {
            ...VulnerabilityLocation
          }
        }
        pageInfo {
          ...PageInfo
        }
      }
    }
  }
}
