Skip to content

Commit

Permalink
Merge pull request aws-samples#12 from aws-samples/yaml-fix
Browse files Browse the repository at this point in the history
refactor: Use more secure yaml load method
  • Loading branch information
dorukozturk authored Jan 11, 2023
2 parents a8a3a3e + 3729123 commit 7ce36a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardeneks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def run_hardeneks(
console.print()

with open(config, "r") as f:
config = yaml.load(f, Loader=yaml.FullLoader)
config = yaml.safe_load(f)

if not namespace:
namespaces = _get_namespaces(config["ignore-namespaces"])
Expand Down

0 comments on commit 7ce36a6

Please sign in to comment.