Skip to content

Instantly share code, notes, and snippets.

@dgwhited
Last active July 13, 2020 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgwhited/7553d5578085d09575c428211c038cc0 to your computer and use it in GitHub Desktop.
Save dgwhited/7553d5578085d09575c428211c038cc0 to your computer and use it in GitHub Desktop.
import json
def check_role(rolename):
policies = get_policies_for_role(rolename)
# Run each finding through parliament and store the findings in a list
all_findings = [ run_parliament(policy_json, policy_name) for policy_name,policy_json in policies.items() ]
print(json.dumps(all_findings, indent=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment