-
-
Save dgwhited/7553d5578085d09575c428211c038cc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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