Skip to content

Commit c3c909a

Browse files
Asjidkalamamuraru
authored andcommitted
Fixed code execution bug using SafeLoader()
1 parent 81fb13c commit c3c909a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ops/git_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def setup_repo(repo_path, upstream_repo):
3333

3434
def checkout_repo(repo_path, config_path, get_version):
3535
with open(os.path.expanduser(config_path)) as f:
36-
conf = yaml.load(f, Loader=yaml.FullLoader)
36+
conf = yaml.load(f, Loader=yaml.SafeLoader)
3737

3838
version = get_version(conf)
3939
repo = git.Repo(repo_path, search_parent_directories=True)

0 commit comments

Comments
 (0)