Welcome to mirror list, hosted at ThFree Co, Russian Federation.

configure_sast_iac.rb « ci_configuration « security « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2073f10b1dfb09a66fbbe57dc6db7c7998c9cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Mutations
  module Security
    module CiConfiguration
      class ConfigureSastIac < BaseSecurityAnalyzer
        graphql_name 'ConfigureSastIac'
        description <<~DESC
          Enable SAST IaC for a project in a new or
          modified `.gitlab-ci.yml` file in a new branch. The new
          branch and a URL to create a merge request are a part of the
          response.
        DESC

        def configure_analyzer(project, **_args)
          ::Security::CiConfiguration::SastIacCreateService.new(project, current_user).execute
        end
      end
    end
  end
end