Safe load yaml.

Change-Id: Id48443b12b553a9ed21bea17d954a72a4f886bf1
Bug: b/217316143
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/32680
Reviewed-by: Godofredo Contreras <godofredoc@google.com>
Commit-Queue: Keyong Han <keyonghan@google.com>
diff --git a/recipe_modules/yaml/resources/parse_yaml.py b/recipe_modules/yaml/resources/parse_yaml.py
index f462a0e..8f0178f 100644
--- a/recipe_modules/yaml/resources/parse_yaml.py
+++ b/recipe_modules/yaml/resources/parse_yaml.py
@@ -22,7 +22,7 @@
 
   with open(args.yaml_file) as f:
     with open(args.json_file, 'w+') as j:
-      json.dump(yaml.load(f), j)
+      json.dump(yaml.safe_load(f), j)
 
 
 if __name__ == '__main__':