Commit aa8aa515 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'sethgitlab-apifuzzing' into 'master'

Use DAST schema for API Fuzzing reports

See merge request gitlab-org/gitlab!75796
parents c89e1075 417e415b
......@@ -11,6 +11,7 @@ RSpec.describe Gitlab::Ci::Parsers::Security::Validators::SchemaValidator do
:coverage_fuzzing | ['root is missing required keys: vulnerabilities'] | { 'version' => '10.0.0', 'vulnerabilities' => [] }
:dast | ['root is missing required keys: vulnerabilities'] | { 'version' => '10.0.0', 'vulnerabilities' => [] }
:dependency_scanning | ['root is missing required keys: dependency_files, vulnerabilities'] | { 'version' => '10.0.0', 'vulnerabilities' => [], 'dependency_files' => [] }
:api_fuzzing | ['root is missing required keys: vulnerabilities'] | { 'version' => '10.0.0', 'vulnerabilities' => [] }
end
with_them do
......
......@@ -34,7 +34,7 @@ module Gitlab
end
def file_name
"#{report_type.to_s.dasherize}-report-format.json"
report_type == :api_fuzzing ? "dast-report-format.json" : "#{report_type.to_s.dasherize}-report-format.json"
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