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
82109595
Commit
82109595
authored
Jan 04, 2021
by
Thiago Figueiró
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Describe VulnerabilityDismissalReason
parent
0ee0578a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
11 deletions
+38
-11
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+19
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+5
-5
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+5
-5
ee/app/graphql/types/vulnerabilities/dismissal_reason_enum.rb
...pp/graphql/types/vulnerabilities/dismissal_reason_enum.rb
+9
-1
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
82109595
...
...
@@ -26051,10 +26051,29 @@ type VulnerabilityDismissPayload {
The dismissal reason of the Vulnerability
"""
enum
VulnerabilityDismissalReason
{
"""
The
likelihood
of
the
Vulnerability
occurring
and
its
impact
are
deemed
acceptable
"""
ACCEPTABLE_RISK
"""
The
Vulnerability
was
incorrectly
identified
as
being
present
"""
FALSE_POSITIVE
"""
There
is
a
mitigating
control
that
eliminates
the
Vulnerability
or
makes
its
risk
acceptable
"""
MITIGATING_CONTROL
"""
Other
reasons
for
dismissal
"""
NOT_APPLICABLE
"""
The
Vulnerability
is
used
in
tests
and
does
not
pose
an
actual
risk
"""
USED_IN_TESTS
}
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
82109595
...
...
@@ -75532,31 +75532,31 @@
"enumValues": [
{
"name": "ACCEPTABLE_RISK",
"description":
null
,
"description":
"The likelihood of the Vulnerability occurring and its impact are deemed acceptable"
,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FALSE_POSITIVE",
"description":
null
,
"description":
"The Vulnerability was incorrectly identified as being present"
,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "MITIGATING_CONTROL",
"description":
null
,
"description":
"There is a mitigating control that eliminates the Vulnerability or makes its risk acceptable"
,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "USED_IN_TESTS",
"description":
null
,
"description":
"The Vulnerability is used in tests and does not pose an actual risk"
,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "NOT_APPLICABLE",
"description":
null
,
"description":
"Other reasons for dismissal"
,
"isDeprecated": false,
"deprecationReason": null
}
doc/api/graphql/reference/index.md
View file @
82109595
...
...
@@ -4943,11 +4943,11 @@ The dismissal reason of the Vulnerability.
| Value | Description |
| ----- | ----------- |
|
`ACCEPTABLE_RISK`
| |
|
`FALSE_POSITIVE`
| |
|
`MITIGATING_CONTROL`
| |
|
`NOT_APPLICABLE`
| |
|
`USED_IN_TESTS`
| |
|
`ACCEPTABLE_RISK`
|
The likelihood of the Vulnerability occurring and its impact are deemed acceptable
|
|
`FALSE_POSITIVE`
|
The Vulnerability was incorrectly identified as being present
|
|
`MITIGATING_CONTROL`
|
There is a mitigating control that eliminates the Vulnerability or makes its risk acceptable
|
|
`NOT_APPLICABLE`
|
Other reasons for dismissal
|
|
`USED_IN_TESTS`
|
The Vulnerability is used in tests and does not pose an actual risk
|
### VulnerabilityExternalIssueLinkExternalTracker
...
...
ee/app/graphql/types/vulnerabilities/dismissal_reason_enum.rb
View file @
82109595
...
...
@@ -6,8 +6,16 @@ module Types
graphql_name
'VulnerabilityDismissalReason'
description
'The dismissal reason of the Vulnerability'
DISMISSAL_DESCRIPTIONS
=
{
acceptable_risk:
'The likelihood of the Vulnerability occurring and its impact are deemed acceptable'
,
false_positive:
'The Vulnerability was incorrectly identified as being present'
,
mitigating_control:
'There is a mitigating control that eliminates the Vulnerability or makes its risk acceptable'
,
used_in_tests:
'The Vulnerability is used in tests and does not pose an actual risk'
,
not_applicable:
'Other reasons for dismissal'
}.
freeze
::
Vulnerabilities
::
Feedback
.
dismissal_reasons
.
keys
.
each
do
|
dismissal_reason
|
value
dismissal_reason
.
to_s
.
upcase
,
value:
dismissal_reason
.
to_s
value
dismissal_reason
.
to_s
.
upcase
,
value:
dismissal_reason
.
to_s
,
description:
DISMISSAL_DESCRIPTIONS
[
dismissal_reason
.
to_sym
]
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