diff options
Diffstat (limited to 'lib/api/entities/runner_details.rb')
-rw-r--r-- | lib/api/entities/runner_details.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities/runner_details.rb b/lib/api/entities/runner_details.rb index 17202821e6e..2bb143253fe 100644 --- a/lib/api/entities/runner_details.rb +++ b/lib/api/entities/runner_details.rb @@ -10,7 +10,11 @@ module API expose :access_level expose :version, :revision, :platform, :architecture expose :contacted_at + + # @deprecated in 12.10 https://gitlab.com/gitlab-org/gitlab/-/issues/214320 + # will be removed by 13.0 https://gitlab.com/gitlab-org/gitlab/-/issues/214322 expose :token, if: lambda { |runner, options| options[:current_user].admin? || !runner.instance_type? } + # rubocop: disable CodeReuse/ActiveRecord expose :projects, with: Entities::BasicProjectDetails do |runner, options| if options[:current_user].admin? |