INNER CODE UNIT · Python
execute_command
rohitcoder/hawk-eye · hawk_scanner/main.py:36
def execute_command(command, args):
module = load_command_module(command)
return module.execute(args)
def group_results(args, results):
grouped_results = defaultdict(list)
for result in results:
connection = system.get_connection(args)
result = system.evaluate_severity(result, connection)
grouped_results[result['data_source']].append(result)
return grouped_results
def format_slack_message(group, result, records_mini, mention):
template_map = {
's3': """
*** PII Or Secret Found ***