Skip to content

Commit 69b44d5

Browse files
committed
Replace unsafe pyyaml loader with SafeLoader
1 parent dcedda3 commit 69b44d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jtd_codebuild/loaders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def load_definitions(cwd: str) -> Dict[AnyStr, Any]:
3838
filepath = join(root, file)
3939
with open(filepath, "r") as f:
4040
definition_parts = (
41-
yaml.load(f, Loader=yaml.FullLoader)
41+
yaml.load(f, Loader=yaml.SafeLoader)
4242
if file_is_yaml(file)
4343
else json.load(f)
4444
)
@@ -66,7 +66,7 @@ def load_root_schema(cwd: str) -> Dict[AnyStr, Any]:
6666

6767
with open(schema_path, "r") as f:
6868
return (
69-
yaml.load(f, Loader=yaml.FullLoader)
69+
yaml.load(f, Loader=yaml.SafeLoader)
7070
if file_is_yaml(schema_path)
7171
else json.load(f)
7272
)

0 commit comments

Comments
 (0)
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