mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-16 15:25:18 +01:00
Merge pull request #13816 from ninjadq/cherry_pick_python_yaml_load_210
Fix pythom yaml load to safe_load
This commit is contained in:
commit
591d4eeab8
@ -81,7 +81,7 @@ def parse_versions():
|
||||
if not versions_file_path.is_file():
|
||||
return {}
|
||||
with open('versions') as f:
|
||||
versions = yaml.load(f)
|
||||
versions = yaml.safe_load(f)
|
||||
return versions
|
||||
|
||||
|
||||
@ -92,7 +92,7 @@ def parse_yaml_config(config_file_path, with_notary, with_clair, with_trivy, wit
|
||||
'''
|
||||
|
||||
with open(config_file_path) as f:
|
||||
configs = yaml.load(f)
|
||||
configs = yaml.safe_load(f)
|
||||
|
||||
config_dict = {
|
||||
'portal_url': 'http://portal:8080',
|
||||
|
Loading…
Reference in New Issue
Block a user