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
class Sast
SastParserError = Class.new(StandardError)
METADATA_VERSION = 'sast:1.3'
METADATA_VERSION = '1.2'
def parse!(json_data, report)
vulnerabilities = JSON.parse!(json_data)
......@@ -39,7 +39,9 @@ module Gitlab
scanner: scanner,
identifiers: identifiers,
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
......
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