Skip to content

Commit bb89940

Browse files
committed
replace YAML.parse with YAML.safe_load in release tool
YAML.parse returns Psych nodes that then need to be converted to plain ruby objects. Calling YAML.safe_load outputs basic ruby objects already and also increases security as it greatly restricts the classes it deserializes. Fixes #11208
1 parent b6d7dd1 commit bb89940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/release/bump_plugin_versions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def compute_dependecy(version, allow_for)
9494
`git remote add upstream [email protected]:elastic/logstash.git`
9595
`git push upstream #{branch_name}`
9696

97-
current_release = YAML.parse(IO.read("versions.yml"))["logstash"]
97+
current_release = YAML.safe_load(IO.read("versions.yml"))["logstash"]
9898
puts "Creating Pull Request"
9999
pr_title = "bump lock file for #{current_release}"
100100

0 commit comments

Comments
 (0)