Commit 9b19ce5e authored by Olivier Gonzalez's avatar Olivier Gonzalez

Fix SAST report format version

parent 5c2ac25d
...@@ -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