Commit c5dacce4 authored by Kamil Trzciński's avatar Kamil Trzciński

Use YAML.safe_load

parent 7b50965e
...@@ -10,7 +10,7 @@ module Ci ...@@ -10,7 +10,7 @@ module Ci
attr_reader :before_script, :image, :services, :variables, :path, :cache attr_reader :before_script, :image, :services, :variables, :path, :cache
def initialize(config, path = nil) def initialize(config, path = nil)
@config = YAML.load(config) @config = YAML.safe_load(config)
@path = path @path = path
unless @config.is_a? Hash unless @config.is_a? Hash
...@@ -250,4 +250,4 @@ module Ci ...@@ -250,4 +250,4 @@ module Ci
end end
end end
end end
end end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment