Commit 889eafff authored by Laurent Peuch's avatar Laurent Peuch
Browse files

fix: yaml.load without a loader doesn't exist anymore

parent ba7db2bc06ba
Pipeline #89315 passed with stage
in 33 minutes and 27 seconds
......@@ -119,7 +119,7 @@ class AddYamlLint(Command):
# reread it because we've just modified it
gitlab_ci_content = repo.read_file(".gitlab-ci.yml")
gitlab_ci_yaml = yaml.load(gitlab_ci_content)
gitlab_ci_yaml = yaml.safe_load(gitlab_ci_content)
if not gitlab_ci_yaml.get("image", "").strip().startswith("python"):
context["image"] = True
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