blob: 37c0af944a7b25dd7d0f2c38d51a245158a0a56d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# 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
|