From e52491f0b665f89e4554acc8316fe80e96f6d8c3 Mon Sep 17 00:00:00 2001 From: Oleh Melenevskyi <767472+melenevskyi@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:21:32 +0300 Subject: [PATCH] Fix Snyk yaml load error (#1224) --- test_scenarios/send_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_scenarios/send_data.py b/test_scenarios/send_data.py index 91d5c4670..22a5ccfd5 100755 --- a/test_scenarios/send_data.py +++ b/test_scenarios/send_data.py @@ -29,7 +29,7 @@ def main(args): return False with open(args.file) as file: - data = yaml.load(file, Loader=yaml.FullLoader) + data = yaml.safe_load(file, Loader=yaml.FullLoader) # ensure UTC args.panther_compromise_datetime = args.panther_compromise_datetime.replace(tzinfo=timezone.utc)