From c3c909a6a46f44b692bf6e92f024dea0606eab50 Mon Sep 17 00:00:00 2001 From: Asjid Kalam Date: Mon, 15 Feb 2021 02:16:40 +0530 Subject: [PATCH] Fixed code execution bug using SafeLoader() --- src/ops/git_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ops/git_utils.py b/src/ops/git_utils.py index 1828bc6e..53ecac32 100644 --- a/src/ops/git_utils.py +++ b/src/ops/git_utils.py @@ -33,7 +33,7 @@ def setup_repo(repo_path, upstream_repo): def checkout_repo(repo_path, config_path, get_version): with open(os.path.expanduser(config_path)) as f: - conf = yaml.load(f, Loader=yaml.FullLoader) + conf = yaml.load(f, Loader=yaml.SafeLoader) version = get_version(conf) repo = git.Repo(repo_path, search_parent_directories=True)