summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/job_token_scope_type.rb
blob: 9f48298e1d38a44f36a1f713e178c4a36b6a1c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Types
  # rubocop: disable Graphql/AuthorizeTypes
  # Authorization is in the resolver based on the parent project
  module Ci
    class JobTokenScopeType < BaseObject
      graphql_name 'CiJobTokenScopeType'

      field :projects, Types::ProjectType.connection_type, null: false,
        description: 'Allow list of projects that can be accessed by CI Job tokens created by this project.',
        method: :all_projects
    end
  end
  # rubocop: enable Graphql/AuthorizeTypes
end