gitlab-org--gitlab-foss/app/graphql/types/security/report_type_enum.rb

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

16 lines
397 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Types
module Security
class ReportTypeEnum < BaseEnum
graphql_name 'SecurityReportTypeEnum'
::Security::SecurityJobsFinder.allowed_job_types.each do |report_type|
value report_type.upcase,
value: report_type,
description: "#{report_type.upcase.to_s.tr('_', ' ')} scan report"
end
end
end
end