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
dd802048
Commit
dd802048
authored
Nov 03, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise exception if can not mark the project as vulnerable
parent
a9d91189
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/app/services/security/store_reports_service.rb
ee/app/services/security/store_reports_service.rb
+3
-3
No files found.
ee/app/services/security/store_reports_service.rb
View file @
dd802048
...
@@ -11,7 +11,7 @@ module Security
...
@@ -11,7 +11,7 @@ module Security
def
execute
def
execute
store_reports
store_reports
mark_project_as_vulnerable
mark_project_as_vulnerable
!
errors
.
any?
?
error
(
full_errors
)
:
success
errors
.
any?
?
error
(
full_errors
)
:
success
end
end
...
@@ -29,8 +29,8 @@ module Security
...
@@ -29,8 +29,8 @@ module Security
end
end
end
end
def
mark_project_as_vulnerable
def
mark_project_as_vulnerable
!
project
.
project_setting
.
update
(
has_vulnerabilities:
true
)
project
.
project_setting
.
update
!
(
has_vulnerabilities:
true
)
end
end
def
full_errors
def
full_errors
...
...
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