From 69b44d585775d91a32b8a15bc962219158211b0c Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <23113631+pixeebot@users.noreply.github.com> Date: Sat, 17 Feb 2024 04:36:20 +0000 Subject: [PATCH] Replace unsafe `pyyaml` loader with `SafeLoader` --- jtd_codebuild/loaders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jtd_codebuild/loaders.py b/jtd_codebuild/loaders.py index 5a8ea73..a31ef61 100644 --- a/jtd_codebuild/loaders.py +++ b/jtd_codebuild/loaders.py @@ -38,7 +38,7 @@ def load_definitions(cwd: str) -> Dict[AnyStr, Any]: filepath = join(root, file) with open(filepath, "r") as f: definition_parts = ( - yaml.load(f, Loader=yaml.FullLoader) + yaml.load(f, Loader=yaml.SafeLoader) if file_is_yaml(file) else json.load(f) ) @@ -66,7 +66,7 @@ def load_root_schema(cwd: str) -> Dict[AnyStr, Any]: with open(schema_path, "r") as f: return ( - yaml.load(f, Loader=yaml.FullLoader) + yaml.load(f, Loader=yaml.SafeLoader) if file_is_yaml(schema_path) else json.load(f) ) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy