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
4ac6cf6d
Commit
4ac6cf6d
authored
Dec 15, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Insert `uuid` values on Security::Finding creation
parent
c9f1648c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
ee/app/services/security/store_findings_metadata_service.rb
ee/app/services/security/store_findings_metadata_service.rb
+1
-0
ee/spec/services/security/store_findings_metadata_service_spec.rb
...services/security/store_findings_metadata_service_spec.rb
+1
-0
No files found.
ee/app/services/security/store_findings_metadata_service.rb
View file @
4ac6cf6d
...
...
@@ -44,6 +44,7 @@ module Security
{
severity:
report_finding
.
severity
,
confidence:
report_finding
.
confidence
,
uuid:
report_finding
.
uuid
,
project_fingerprint:
report_finding
.
project_fingerprint
,
scanner:
persisted_scanner_for
(
report_finding
.
scanner
),
position:
position
...
...
ee/spec/services/security/store_findings_metadata_service_spec.rb
View file @
4ac6cf6d
...
...
@@ -40,6 +40,7 @@ RSpec.describe Security::StoreFindingsMetadataService do
expect
{
store_findings
}.
to
change
{
security_scan
.
findings
.
count
}.
by
(
2
)
.
and
change
{
security_scan
.
findings
.
first
&
.
severity
}.
to
(
security_finding_1
.
severity
.
to_s
)
.
and
change
{
security_scan
.
findings
.
first
&
.
confidence
}.
to
(
security_finding_1
.
confidence
.
to_s
)
.
and
change
{
security_scan
.
findings
.
first
&
.
uuid
}.
to
(
security_finding_1
.
uuid
)
.
and
change
{
security_scan
.
findings
.
first
&
.
project_fingerprint
}.
to
(
security_finding_1
.
project_fingerprint
)
.
and
change
{
security_scan
.
findings
.
first
&
.
position
}.
to
(
0
)
.
and
change
{
security_scan
.
findings
.
last
&
.
position
}.
to
(
1
)
...
...
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