Content-Length: 1057 | pFad | http://github.com/apache/airflow/pull/22091.patch
thub.com
From fd4ae1dc7a41424de79d453759ae3bb200db52d2 Mon Sep 17 00:00:00 2001
From: Lukasz Wyszomirski
Date: Tue, 8 Mar 2022 14:08:06 +0000
Subject: [PATCH] Use yaml safe load
---
airflow/providers/google/cloud/operators/cloud_build.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/providers/google/cloud/operators/cloud_build.py b/airflow/providers/google/cloud/operators/cloud_build.py
index 74af85f9062fa..fdb6c21efcdb7 100644
--- a/airflow/providers/google/cloud/operators/cloud_build.py
+++ b/airflow/providers/google/cloud/operators/cloud_build.py
@@ -188,7 +188,7 @@ def prepare_template(self) -> None:
return
with open(self.build_raw) as file:
if any(self.build_raw.endswith(ext) for ext in ['.yaml', '.yml']):
- self.build = yaml.load(file.read(), Loader=yaml.FullLoader)
+ self.build = yaml.safe_load(file.read())
if self.build_raw.endswith('.json'):
self.build = json.loads(file.read())
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/apache/airflow/pull/22091.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy