commit | 5f64953e8f88e68ecd325425b43a350ddfda35d1 | [log] [tgz] |
---|---|---|
author | Keyong Han <keyonghan@google.com> | Thu Aug 18 03:03:04 2022 +0000 |
committer | CQ Bot Account <flutter-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 18 03:03:04 2022 +0000 |
tree | 2eec0607715799d418732fb317b562d0d5a054cb | |
parent | 0c910c44d48d2dbd18291d33dc9aa548a655683b [diff] |
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__':