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
d8cf0243
Commit
d8cf0243
authored
May 06, 2020
by
can eldem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove undefined confidence from code
parent
98176cb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/models/vulnerabilities/occurrence.rb
ee/app/models/vulnerabilities/occurrence.rb
+1
-1
ee/lib/api/vulnerability_findings.rb
ee/lib/api/vulnerability_findings.rb
+1
-1
ee/spec/models/vulnerability_spec.rb
ee/spec/models/vulnerability_spec.rb
+1
-1
No files found.
ee/app/models/vulnerabilities/occurrence.rb
View file @
d8cf0243
...
...
@@ -28,7 +28,7 @@ module Vulnerabilities
attr_writer
:sha
CONFIDENCE_LEVELS
=
{
undefined:
0
,
# undefined: 0, no longer applicable
ignore:
1
,
unknown:
2
,
experimental:
3
,
...
...
ee/lib/api/vulnerability_findings.rb
View file @
d8cf0243
...
...
@@ -47,7 +47,7 @@ module API
optional
:confidence
,
type:
Array
[
String
],
desc:
'Returns vulnerabilities belonging to specified confidence level: '
\
'`
undefined`, `
ignore`, `unknown`, `experimental`, `low`, `medium`, `high`, or `confirmed`. '
\
'`ignore`, `unknown`, `experimental`, `low`, `medium`, `high`, or `confirmed`. '
\
'Defaults to all'
,
values:
::
Vulnerabilities
::
Occurrence
.
confidences
.
keys
,
default:
::
Vulnerabilities
::
Occurrence
.
confidences
.
keys
...
...
ee/spec/models/vulnerability_spec.rb
View file @
d8cf0243
...
...
@@ -7,7 +7,7 @@ describe Vulnerability do
let
(
:severity_values
)
{
{
info:
1
,
unknown:
2
,
low:
4
,
medium:
5
,
high:
6
,
critical:
7
}
}
let
(
:confidence_values
)
do
{
undefined:
0
,
ignore:
1
,
unknown:
2
,
experimental:
3
,
low:
4
,
medium:
5
,
high:
6
,
confirmed:
7
}
{
ignore:
1
,
unknown:
2
,
experimental:
3
,
low:
4
,
medium:
5
,
high:
6
,
confirmed:
7
}
end
let
(
:report_types
)
do
{
sast:
0
,
...
...
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