Change yaml.load() to safe_load()

This commit is contained in:
Sam Fowler 2021-01-19 15:58:12 +10:00
parent 9caf675ed1
commit 368ebbeddf

View File

@ -45,7 +45,7 @@ def get_gomod_dependencies(rootdir, components):
def get_rules_dependencies(rules_file): def get_rules_dependencies(rules_file):
import yaml import yaml
with open(rules_file) as f: with open(rules_file) as f:
data = yaml.load(f) data = yaml.safe_load(f)
return data return data