diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-03 15:09:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-03 15:09:42 +0300 |
commit | 6b3944a90167998424f6f258dcffcd4ec740ef03 (patch) | |
tree | 52be4c90a768d55655631d1b8058bced792813ce /lib/gitlab/ci/parsers | |
parent | 42d930072f05883b7b1b0cc060c175912ea942dc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/parsers')
-rw-r--r-- | lib/gitlab/ci/parsers/security/common.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/ci/parsers/security/common.rb b/lib/gitlab/ci/parsers/security/common.rb index a4cbff3f3a2..41acb4d5040 100644 --- a/lib/gitlab/ci/parsers/security/common.rb +++ b/lib/gitlab/ci/parsers/security/common.rb @@ -28,7 +28,7 @@ module Gitlab create_analyzer set_report_version - create_vulnerabilities + create_findings report_data rescue JSON::ParserError @@ -78,13 +78,13 @@ module Gitlab data['tracking'] end - def create_vulnerabilities + def create_findings if report_data["vulnerabilities"] - report_data["vulnerabilities"].each { |vulnerability| create_vulnerability(vulnerability) } + report_data["vulnerabilities"].each { |finding| create_finding(finding) } end end - def create_vulnerability(data, remediations = []) + def create_finding(data, remediations = []) identifiers = create_identifiers(data['identifiers']) links = create_links(data['links']) location = create_location(data['location'] || {}) |