Blob Blame History Raw
diff --git a/osbs/build/config_map_response.py b/osbs/build/config_map_response.py
index 93de56a..9b85e52 100644
--- a/osbs/build/config_map_response.py
+++ b/osbs/build/config_map_response.py
@@ -50,7 +50,7 @@ class ConfigMapResponse(object):
         data_dict = {}
         for key in data:
             if self.is_yaml(key):
-                data_dict[key] = yaml.load(data[key])
+                data_dict[key] = yaml.load_safe(data[key])
             else:
                 data_dict[key] = json.loads(data[key])

@@ -68,5 +68,5 @@ class ConfigMapResponse(object):
             return {}

         if self.is_yaml(name):
-            return yaml.load(data[name]) or {}
+            return yaml.load_safe(data[name]) or {}
         return json.loads(data[name])
diff --git a/osbs/repo_utils.py b/osbs/repo_utils.py
index 7bcae2e..906af0e 100644
--- a/osbs/repo_utils.py
+++ b/osbs/repo_utils.py
@@ -61,7 +61,7 @@ class RepoConfiguration(object):
         file_path = os.path.join(dir_path, REPO_CONTAINER_CONFIG)
         if os.path.exists(file_path):
             with open(file_path) as f:
-                self.container = (yaml.load(f) or {})
+                self.container = (yaml.load_safe(f) or {})

         # container values may be set to None
         container_compose = self.container.get('compose') or {}
--
2.21.0