Class: Mutations::Security::CiConfiguration::ConfigureSast

Inherits:
BaseSecurityAnalyzer show all
Defined in:
app/graphql/mutations/security/ci_configuration/configure_sast.rb

Constant Summary

Constants inherited from BaseMutation

BaseMutation::ERROR_MESSAGE

Constants included from Gitlab::Graphql::Authorize::AuthorizeResource

Gitlab::Graphql::Authorize::AuthorizeResource::ConfigurationError, Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR

Instance Method Summary collapse

Methods inherited from BaseSecurityAnalyzer

#resolve

Methods inherited from BaseMutation

#api_user?, authorization, authorized?, authorizes_object?, #current_user, #errors_on_object, #load_application_object, #ready?

Methods included from Gitlab::Graphql::Authorize::AuthorizeResource

#authorize!, #authorized_find!, #authorized_resource?, #find_object, #raise_resource_not_available_error!

Methods included from Gitlab::Graphql::GlobalIDCompatibility

#coerce_global_id_arguments!

Instance Method Details

#configure_analyzer(project, **args) ⇒ Object


18
19
20
# File 'app/graphql/mutations/security/ci_configuration/configure_sast.rb', line 18

def configure_analyzer(project, **args)
  ::Security::CiConfiguration::SastCreateService.new(project, current_user, args[:configuration]).execute
end