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
7e36d346
Commit
7e36d346
authored
Sep 03, 2020
by
Alan (Maciej) Paruszewski
Committed by
Robert Speicher
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use finding_description in CSV vulnerability export
parent
48a15e58
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
ee/app/models/vulnerability.rb
ee/app/models/vulnerability.rb
+1
-1
ee/app/services/vulnerability_exports/exporters/csv_service.rb
...p/services/vulnerability_exports/exporters/csv_service.rb
+1
-1
ee/changelogs/unreleased/214223-change-description-to-finding-description-in-vuln-export.yml
...nge-description-to-finding-description-in-vuln-export.yml
+5
-0
ee/spec/services/vulnerability_exports/exporters/csv_service_spec.rb
...vices/vulnerability_exports/exporters/csv_service_spec.rb
+2
-2
No files found.
ee/app/models/vulnerability.rb
View file @
7e36d346
...
...
@@ -127,7 +127,7 @@ class Vulnerability < ApplicationRecord
super
||
finding
&
.
dismissal_feedback
&
.
author_id
end
delegate
:scanner_name
,
:scanner_external_id
,
:metadata
,
:message
,
:cve
,
delegate
:scanner_name
,
:scanner_external_id
,
:metadata
,
:message
,
:cve
,
:description
,
to: :finding
,
prefix:
true
,
allow_nil:
true
delegate
:default_branch
,
:name
,
to: :project
,
prefix:
true
,
allow_nil:
true
...
...
ee/app/services/vulnerability_exports/exporters/csv_service.rb
View file @
7e36d346
...
...
@@ -10,7 +10,7 @@ module VulnerabilityExports
'Scanner Name'
=>
'finding_scanner_name'
,
'Status'
=>
'state'
,
'Vulnerability'
=>
'title'
,
'Details'
=>
'description'
,
'Details'
=>
'
finding_
description'
,
'Additional Info'
=>
'finding_message'
,
'Severity'
=>
'severity'
,
'CVE'
=>
'finding_cve'
...
...
ee/changelogs/unreleased/214223-change-description-to-finding-description-in-vuln-export.yml
0 → 100644
View file @
7e36d346
---
title
:
Use finding_description for Details in CSV vulnerability export
merge_request
:
40944
author
:
type
:
changed
ee/spec/services/vulnerability_exports/exporters/csv_service_spec.rb
View file @
7e36d346
...
...
@@ -36,7 +36,7 @@ RSpec.describe VulnerabilityExports::Exporters::CsvService do
expect
(
csv
[
0
][
'Scanner Name'
]).
to
eq
vulnerability
.
finding_scanner_name
expect
(
csv
[
0
][
'Status'
]).
to
eq
vulnerability
.
state
expect
(
csv
[
0
][
'Vulnerability'
]).
to
eq
vulnerability
.
title
expect
(
csv
[
0
][
'Details'
]).
to
eq
vulnerability
.
description
expect
(
csv
[
0
][
'Details'
]).
to
eq
vulnerability
.
finding_
description
expect
(
csv
[
0
][
'Additional Info'
]).
to
eq
vulnerability
.
finding_message
expect
(
csv
[
0
][
'Severity'
]).
to
eq
vulnerability
.
severity
expect
(
csv
[
0
][
'CVE'
]).
to
eq
vulnerability
.
finding_cve
...
...
@@ -55,7 +55,7 @@ RSpec.describe VulnerabilityExports::Exporters::CsvService do
expect
(
csv
[
0
][
'Scanner Name'
]).
to
eq
vulnerability
.
finding_scanner_name
expect
(
csv
[
0
][
'Status'
]).
to
eq
vulnerability
.
state
expect
(
csv
[
0
][
'Vulnerability'
]).
to
eq
vulnerability
.
title
expect
(
csv
[
0
][
'Details'
]).
to
eq
vulnerability
.
description
expect
(
csv
[
0
][
'Details'
]).
to
eq
vulnerability
.
finding_
description
expect
(
csv
[
0
][
'Additional Info'
]).
to
eq
vulnerability
.
finding_message
expect
(
csv
[
0
][
'Severity'
]).
to
eq
vulnerability
.
severity
expect
(
csv
[
0
][
'CVE'
]).
to
eq
vulnerability
.
finding_cve
...
...
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