debian-mirror-gitlab/lib/api/entities/project_job_token_scope.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
417 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# frozen_string_literal: true
module API
module Entities
class ProjectJobTokenScope < Grape::Entity
expose(:inbound_enabled, documentation: { type: 'boolean' }) do |project, _|
project.ci_inbound_job_token_scope_enabled?
end
expose(:outbound_enabled, documentation: { type: 'boolean' }) do |project, _|
project.ci_outbound_job_token_scope_enabled?
end
end
end
end