Skip to content

Commit

Permalink
Use yaml safe load (#22091)
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Wyszomirski authored Mar 8, 2022
1 parent b277bef commit dfd9805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/operators/cloud_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit dfd9805

Please sign in to comment.