Skip to content

Commit

Permalink
switched yaml.load() to yaml.safe_load() to not load serialized pytho…
Browse files Browse the repository at this point in the history
…n objects.
  • Loading branch information
SteveMcGrath committed Mar 4, 2021
1 parent fa838db commit f8c2095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tenable_jira/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def cli(configfile, observed_since, setup_only=False, troubleshoot=False):
'''
# Load the config, but ensure that any additional fields are additive to the
# basic field set.
config_from_file = yaml.load(configfile, Loader=yaml.Loader)
config_from_file = yaml.safe_load(configfile)
fields = config_from_file.pop('custom_fields', list())
config = dict_merge(base_config(), config_from_file)
config['fields'] = config['fields'] + fields
Expand Down

2 comments on commit f8c2095

@rabby28698869
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SteveMcGrath
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Please sign in to comment.