In order to run audit.rb
you'll need:
- An environment capable to run Ruby scripts.
- Download
audit.rb
andGemfile
to a new folder - Install the script dependencies by running
bundle install
To get an instance wide audit you'll also need to:
- Log in as the GHE Site Admin and generate a personal access token with
read:org
scope - SSH into the GHE VM and run
ghe-org-owner-promote
. This will make the site admin an owner in all organizations. - Set OCTOKIT_ACCESS_TOKEN to the token you've just generated
- Set OCTOKIT_API_ENDPOINT to http(s)://[your-hostname]/api/v3/
- Run the script