Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

XAMPPRocky/gh-auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GitHub Auditor

gh-auditor is program that allows you to easily check if your organisation meets your criteria.

Checks

  • Organisation has 2 Factor Authenication enabled
  • Seperate accounts for adminstration
  • All master branches are protected

In Progress

  • Member whitelist
  • Admin whitelist
  • Additional branch protection checks (e.g. requiring verified commits)

Example Output

⏳ Auditing 2 Factor Authentication
❗️ Warning:
2 Factor Authentication is not required for members of the organisation.

💡 Recommendation:
Enable 2 Factor as a requirement for members.

⏳ Auditing Admin Commit Activity
❗️ Warning:
Admins (XAMPPRocky) have push activity. This is usually an indication that admin
members are using their accounts for purposes other than administration.

💡 Recommendation:
Create seperate accounts for administration access to the organisation.

⏳ Auditing Protected master branches.
❗️ Warning:
Repositories (gh-audit-test/test-repo) have unprotected master branches. This
could lead to accidental data loss.

💡 Recommendation:
Protect master branches and require all commits are made through PRs.

Install

cargo install gh-auditor

Usage

To run an audit on an organisation you need provide the organisation name and a GitHub access token with admin:read rights.

gh-auditor rust-lang

By default gh-auditor will try to read from the GITHUB_API_KEY environment variable. You can supply it from the command line.

gh-auditor -t "<token>" rust-lang

CLI

Erin P. <xampprocky@gmail.com>

USAGE:
    gh-auditor [OPTIONS] <organisation>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -t, --token <token>    GitHub authentication token.

ARGS:
    <organisation>    GitHub Organisation to audit. Requires `admin:read` level permissions

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages