summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci_configuration/sast/type.rb
blob: edfdf2969299b90671b1d858647c4a00b5087142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true

module Types
  module CiConfiguration
    module Sast
      # rubocop: disable Graphql/AuthorizeTypes
      class Type < BaseObject
        graphql_name 'SastCiConfiguration'
        description 'Represents a CI configuration of SAST'

        field :global,
              ::Types::CiConfiguration::Sast::EntityType.connection_type,
              null: true,
              description: 'List of global entities related to SAST configuration.'

        field :pipeline,
              ::Types::CiConfiguration::Sast::EntityType.connection_type,
              null: true,
              description: 'List of pipeline entities related to SAST configuration.'

        field :analyzers,
              ::Types::CiConfiguration::Sast::AnalyzersEntityType.connection_type,
              null: true,
              description: 'List of analyzers entities attached to SAST configuration.'
      end
    end
  end
end