Commit 4399e7cc authored by Rémi Duraffort's avatar Rémi Duraffort

CI: use yaml.safe_load

This has no security impact in this case but that a good habit.
Signed-off-by: default avatarRémi Duraffort <remi.duraffort@linaro.org>
parent 7391e517
......@@ -34,12 +34,12 @@ def load_requirements(suite, package):
requirements = {}
if suite.endswith("-backports"):
base_suite = suite.replace("-backports", "")
data = yaml.load(
data = yaml.safe_load(
(debian / ("%s.yaml" % base_suite)).read_text(encoding="utf-8")
)[package]
if data is not None:
requirements = data
data = yaml.load((debian / ("%s.yaml" % suite)).read_text(encoding="utf-8"))[
data = yaml.safe_load((debian / ("%s.yaml" % suite)).read_text(encoding="utf-8"))[
package
]
if data is not None:
......
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