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
0b1d8bf8
Commit
0b1d8bf8
authored
Apr 05, 2021
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return scanner ID in Vulnerability Scanner query
Updated documentation
parent
f2b06d08
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
ee/app/graphql/types/vulnerability_scanner_type.rb
ee/app/graphql/types/vulnerability_scanner_type.rb
+3
-0
ee/changelogs/unreleased/293843-expand-filtering-functionality-of-vulnerabilities-graphql-scanner-id.yml
...g-functionality-of-vulnerabilities-graphql-scanner-id.yml
+5
-0
ee/spec/graphql/types/vulnerability_scanner_type_spec.rb
ee/spec/graphql/types/vulnerability_scanner_type_spec.rb
+1
-1
No files found.
doc/api/graphql/reference/index.md
View file @
0b1d8bf8
...
...
@@ -7125,6 +7125,7 @@ Represents a vulnerability scanner.
| Field | Type | Description |
| ----- | ---- | ----------- |
|
`externalId`
|
[
`String`
](
#string
)
| External ID of the vulnerability scanner. |
|
`id`
|
[
`ID`
](
#id
)
| ID of the scanner. |
|
`name`
|
[
`String`
](
#string
)
| Name of the vulnerability scanner. |
|
`reportType`
|
[
`VulnerabilityReportType`
](
#vulnerabilityreporttype
)
| Type of the vulnerability report. |
|
`vendor`
|
[
`String`
](
#string
)
| Vendor of the vulnerability scanner. |
...
...
ee/app/graphql/types/vulnerability_scanner_type.rb
View file @
0b1d8bf8
...
...
@@ -7,6 +7,9 @@ module Types
authorize
:read_vulnerability_scanner
field
:id
,
GraphQL
::
ID_TYPE
,
null:
true
,
description:
'ID of the scanner.'
field
:name
,
GraphQL
::
STRING_TYPE
,
null:
true
,
description:
'Name of the vulnerability scanner.'
...
...
ee/changelogs/unreleased/293843-expand-filtering-functionality-of-vulnerabilities-graphql-scanner-id.yml
0 → 100644
View file @
0b1d8bf8
---
title
:
Expose vulnerability Scanner ID through GraphQL query
merge_request
:
58595
author
:
type
:
changed
ee/spec/graphql/types/vulnerability_scanner_type_spec.rb
View file @
0b1d8bf8
...
...
@@ -7,7 +7,7 @@ RSpec.describe GitlabSchema.types['VulnerabilityScanner'] do
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:fields
)
do
%i[name external_id vendor report_type]
%i[
id
name external_id vendor report_type]
end
before
do
...
...
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