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
b5f03623
Commit
b5f03623
authored
Nov 18, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the `project` attribute of `StoreScanService`
parent
07612ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/app/services/security/store_scan_service.rb
ee/app/services/security/store_scan_service.rb
+2
-2
No files found.
ee/app/services/security/store_scan_service.rb
View file @
b5f03623
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
# @param known_keys [Set] the set of known finding keys stored by previous invocations of this service class.
# @param known_keys [Set] the set of known finding keys stored by previous invocations of this service class.
# @param deduplicate [Boolean] attribute to force running deduplication logic.
# @param deduplicate [Boolean] attribute to force running deduplication logic.
module
Security
module
Security
class
StoreScanService
<
::
BaseService
class
StoreScanService
def
self
.
execute
(
artifact
,
known_keys
,
deduplicate
)
def
self
.
execute
(
artifact
,
known_keys
,
deduplicate
)
new
(
artifact
,
known_keys
,
deduplicate
).
execute
new
(
artifact
,
known_keys
,
deduplicate
).
execute
end
end
...
@@ -30,7 +30,7 @@ module Security
...
@@ -30,7 +30,7 @@ module Security
private
private
attr_reader
:artifact
,
:known_keys
,
:deduplicate
attr_reader
:artifact
,
:known_keys
,
:deduplicate
delegate
:security_report
,
to: :artifact
,
private:
true
delegate
:security_report
,
:project
,
to: :artifact
,
private:
true
def
security_scan
def
security_scan
@security_scan
||=
Security
::
Scan
.
safe_find_or_create_by!
(
build:
artifact
.
job
,
scan_type:
artifact
.
file_type
)
@security_scan
||=
Security
::
Scan
.
safe_find_or_create_by!
(
build:
artifact
.
job
,
scan_type:
artifact
.
file_type
)
...
...
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