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
11753075
Commit
11753075
authored
Jul 07, 2020
by
Alan (Maciej) Paruszewski
Committed by
James Fargher
Jul 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vendor to scanner entity in Vulnerability Findings API
parent
eaea6a68
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
ee/app/serializers/vulnerabilities/scanner_entity.rb
ee/app/serializers/vulnerabilities/scanner_entity.rb
+1
-0
ee/changelogs/unreleased/210327-add-vendor-to-occurrences-rest-api.yml
.../unreleased/210327-add-vendor-to-occurrences-rest-api.yml
+5
-0
ee/spec/serializers/vulnerabilities/scanner_entity_spec.rb
ee/spec/serializers/vulnerabilities/scanner_entity_spec.rb
+1
-1
No files found.
ee/app/serializers/vulnerabilities/scanner_entity.rb
View file @
11753075
...
...
@@ -3,4 +3,5 @@
class
Vulnerabilities::ScannerEntity
<
Grape
::
Entity
expose
:external_id
expose
:name
expose
:vendor
end
ee/changelogs/unreleased/210327-add-vendor-to-occurrences-rest-api.yml
0 → 100644
View file @
11753075
---
title
:
Expose Vendor in Scanner in Vulnerability Findings API
merge_request
:
36184
author
:
type
:
added
ee/spec/serializers/vulnerabilities/scanner_entity_spec.rb
View file @
11753075
...
...
@@ -13,7 +13,7 @@ RSpec.describe Vulnerabilities::ScannerEntity do
subject
{
entity
.
as_json
}
it
'contains required fields'
do
expect
(
subject
).
to
include
(
:name
,
:external_id
)
expect
(
subject
).
to
include
(
:name
,
:external_id
,
:vendor
)
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