Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9b19ce5e
Commit
9b19ce5e
authored
Oct 24, 2018
by
Olivier Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SAST report format version
parent
5c2ac25d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ee/lib/gitlab/ci/parsers/security/sast.rb
ee/lib/gitlab/ci/parsers/security/sast.rb
+4
-2
No files found.
ee/lib/gitlab/ci/parsers/security/sast.rb
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment