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:
Diffstat (limited to 'lib/gitlab/bullet/exclusions.rb')
-rw-r--r--lib/gitlab/bullet/exclusions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/bullet/exclusions.rb b/lib/gitlab/bullet/exclusions.rb
index f897ff492d9..406d0a80a07 100644
--- a/lib/gitlab/bullet/exclusions.rb
+++ b/lib/gitlab/bullet/exclusions.rb
@@ -27,7 +27,8 @@ module Gitlab
def exclusions
@exclusions ||= if File.exist?(config_file)
- YAML.load_file(config_file)['exclusions']&.values || []
+ config = YAML.safe_load_file(config_file, permitted_classes: [Range])
+ config['exclusions']&.values || []
else
[]
end