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
417e415b
Commit
417e415b
authored
Dec 02, 2021
by
Seth Berger
Committed by
Seth Berger
Dec 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mapped api fuzzing schema to dast schema
parent
2fcace97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
ee/spec/lib/ee/gitlab/ci/parsers/security/validators/schema_validator_spec.rb
...b/ci/parsers/security/validators/schema_validator_spec.rb
+1
-0
lib/gitlab/ci/parsers/security/validators/schema_validator.rb
...gitlab/ci/parsers/security/validators/schema_validator.rb
+1
-1
No files found.
ee/spec/lib/ee/gitlab/ci/parsers/security/validators/schema_validator_spec.rb
View file @
417e415b
...
@@ -11,6 +11,7 @@ RSpec.describe Gitlab::Ci::Parsers::Security::Validators::SchemaValidator do
...
@@ -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'
=>
[]
}
: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'
=>
[]
}
: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'
=>
[]
}
: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
end
with_them
do
with_them
do
...
...
lib/gitlab/ci/parsers/security/validators/schema_validator.rb
View file @
417e415b
...
@@ -34,7 +34,7 @@ module Gitlab
...
@@ -34,7 +34,7 @@ module Gitlab
end
end
def
file_name
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
end
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