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>2023-04-04 15:15:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-04 15:15:02 +0300
commitf00510286b6ccda154c4926503397590a8851939 (patch)
treec4cd69ef2d0d6dd5abf30e3963ac00ead7421a19 /lib/gitlab/bullet
parent9e5c2e7342d1393f90e74a2ae4b3f27492c22e1f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/bullet')
-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