Use yaml safe_load instead of load (#6672)

This commit is contained in:
Eric Zhu
2025-06-12 15:18:33 -07:00
committed by GitHub
parent e14fb8fc09
commit 150ea0192d
2 changed files with 2 additions and 2 deletions

View File

@@ -28,5 +28,5 @@ def load_yaml_file(file_path: str) -> Any:
Opens a file and returns its contents.
"""
with open(file_path, "r") as file:
return yaml.load(file, Loader=yaml.FullLoader)
return yaml.safe_load(file)