Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 21:25:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 21:25:58 +0300
commita5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch)
treefb69158581673816a8cd895f9d352dcb3c678b1e /app/models/concerns/enums/vulnerability.rb
parentd16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff)
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'app/models/concerns/enums/vulnerability.rb')
-rw-r--r--app/models/concerns/enums/vulnerability.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/models/concerns/enums/vulnerability.rb b/app/models/concerns/enums/vulnerability.rb
index 55360eb92e6..749d1ad65cd 100644
--- a/app/models/concerns/enums/vulnerability.rb
+++ b/app/models/concerns/enums/vulnerability.rb
@@ -29,6 +29,14 @@ module Enums
critical: 7
}.with_indifferent_access.freeze
+ DETECTION_METHODS = {
+ gitlab_security_report: 0,
+ external_security_report: 1,
+ bug_bounty: 2,
+ code_review: 3,
+ security_audit: 4
+ }.with_indifferent_access.freeze
+
def self.confidence_levels
CONFIDENCE_LEVELS
end
@@ -40,6 +48,10 @@ module Enums
def self.severity_levels
SEVERITY_LEVELS
end
+
+ def self.detection_methods
+ DETECTION_METHODS
+ end
end
end