Skip to content

Commit 7f4935b

Browse files
author
Łukasz Wyszomirski
authored
Use yaml safe load (#22085)
1 parent c7286e5 commit 7f4935b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

β€Žairflow/providers/google/cloud/operators/cloud_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def prepare_template(self) -> None:
188188
return
189189
with open(self.build_raw) as file:
190190
if any(self.build_raw.endswith(ext) for ext in ['.yaml', '.yml']):
191-
self.build = yaml.load(file.read(), Loader=yaml.FullLoader)
191+
self.build = yaml.safe_load_all(file.read())
192192
if self.build_raw.endswith('.json'):
193193
self.build = json.loads(file.read())
194194

0 commit comments

Comments
 (0)