summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorKamil Trzciński <kamil@gitlab.com>2015-12-09 19:50:00 +0000
committerKamil Trzciński <kamil@gitlab.com>2015-12-09 19:50:00 +0000
commitc5dacce4d7e47a0504975fbb3bfaf478b95f1065 (patch)
tree8aa644a5f6527671eac25bbeebff3ff0686dc776 /lib/ci
parent7b50965e9990bcb88f56b771d47514cbeb5316e5 (diff)
downloadgitlab-ce-c5dacce4d7e47a0504975fbb3bfaf478b95f1065.tar.gz
Use YAML.safe_load
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 3beafcad117..7f54f5f0722 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -10,7 +10,7 @@ module Ci
attr_reader :before_script, :image, :services, :variables, :path, :cache
def initialize(config, path = nil)
- @config = YAML.load(config)
+ @config = YAML.safe_load(config)
@path = path
unless @config.is_a? Hash
@@ -250,4 +250,4 @@ module Ci
end
end
end
-end
+end \ No newline at end of file