Skip to content

Commit

Permalink
refactor: Use more secure yaml load method
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukozturk committed Jan 11, 2023
1 parent a8a3a3e commit 3729123
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 3729123

Please sign in to comment.