- Create a Github App (Organization > Settings > Developer Settings > Github Apps). This name will be publicly visible and any repo invites will show this name in the invite email.
- Set the permissions to read/write for repository administration and repository contents.
- Install the Github App for your organization (Github App > Install App)
- Generate a private key for your Github App
- Copy the Ruby Script to generate a JWT from your private key https://developer.github.com/apps/building-github-apps/authentication-options-for-github-apps/
require 'openssl'
require 'jwt' # https://rubygems.org/gems/jwt