GitHub-Audit
June 25, 2018 ยท View on GitHub
Collection of Tools & Procedures for double checking GitHub configurations
Targeted threats
The set of tools is primarily focussed on detecting deltras from our guidelines. The current list includes
Checks via API
These checks can be automated, if a PAT token is available. The PAT
token should be on the second line of a file named .credentials in
the current directory.
-
check_multiple_creds.pyto determine if anyone associated with an org appear to have multiple deployed credentials. -
get_branch_protections.py* to extract the information about protected branches. Outputs JSON file, whichreport_branch_status.pycan summarize to csv. Import that into a spreadsheet, and play. -
show_all_termsis a wrapper script aroundterm_search.py. It makes local shallow clones of repos that match, and usesrgto search for additional occurances. Use the--helpoption. -
term_search.pysearch orgs or repos for a specific term, such as an API token name. Outputs list of repos that do have the term (per GitHub's index, which can be out of date).