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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/security/ci_configuration/configure_sast_iac.rb')
-rw-r--r--app/graphql/mutations/security/ci_configuration/configure_sast_iac.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/graphql/mutations/security/ci_configuration/configure_sast_iac.rb b/app/graphql/mutations/security/ci_configuration/configure_sast_iac.rb
new file mode 100644
index 00000000000..a2073f10b1d
--- /dev/null
+++ b/app/graphql/mutations/security/ci_configuration/configure_sast_iac.rb
@@ -0,0 +1,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