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 'lib/gitlab/ci/parsers/security/sast.rb')
-rw-r--r--lib/gitlab/ci/parsers/security/sast.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/gitlab/ci/parsers/security/sast.rb b/lib/gitlab/ci/parsers/security/sast.rb
new file mode 100644
index 00000000000..e3c62614cd8
--- /dev/null
+++ b/lib/gitlab/ci/parsers/security/sast.rb
@@ -0,0 +1,26 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Ci
+ module Parsers
+ module Security
+ class Sast < Common
+ include Security::Concerns::DeprecatedSyntax
+
+ DEPRECATED_REPORT_VERSION = "1.2"
+
+ private
+
+ def create_location(location_data)
+ ::Gitlab::Ci::Reports::Security::Locations::Sast.new(
+ file_path: location_data['file'],
+ start_line: location_data['start_line'],
+ end_line: location_data['end_line'],
+ class_name: location_data['class'],
+ method_name: location_data['method'])
+ end
+ end
+ end
+ end
+ end
+end