Commit 60a2ca7a authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '6717_fix_sast_report_format_version' into 'master'

Fix SAST report format version

See merge request gitlab-org/gitlab-ee!8067
parents 5877353d 9b19ce5e
...@@ -7,7 +7,7 @@ module Gitlab ...@@ -7,7 +7,7 @@ module Gitlab
class Sast class Sast
SastParserError = Class.new(StandardError) SastParserError = Class.new(StandardError)
METADATA_VERSION = 'sast:1.3' METADATA_VERSION = '1.2'
def parse!(json_data, report) def parse!(json_data, report)
vulnerabilities = JSON.parse!(json_data) vulnerabilities = JSON.parse!(json_data)
...@@ -39,7 +39,9 @@ module Gitlab ...@@ -39,7 +39,9 @@ module Gitlab
scanner: scanner, scanner: scanner,
identifiers: identifiers, identifiers: identifiers,
raw_metadata: data.to_json, raw_metadata: data.to_json,
metadata_version: METADATA_VERSION # hardcoded untill provided in the report # Version is hardcoded here untill provided in the report.
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/8025
metadata_version: METADATA_VERSION
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment