convert-scheme: do not allow arbitrary python code execution

Probably not relevant, but there doesn't seem to be a reason
to use the full loader as far as I can tell...
This commit is contained in:
alfarel 2026-05-25 22:24:03 -04:00
commit 6a8a32d3a8
No known key found for this signature in database

View file

@ -9,7 +9,7 @@ pkgs.writers.writePython3Bin "convert-scheme" {
def yaml_to_json(yaml_file, json_file):
with open(yaml_file, 'r') as yml_file:
data = yaml.load(yml_file, Loader=yaml.FullLoader)
data = yaml.safe_load(yml_file)
with open(json_file, 'w') as json_file:
json.dump(data, json_file, indent=4)