Skip to main content

Adding GitHub token as an Org secret

info

Before you begin, you must have completed the step where you created the GitHub token

Adding your GitHub Token as an Organization wide secret

  1. Go to your GitHub Organization Home Page and navigate to Settings > Security > Secrets and Variables > Actions.

    Screenshot 2023-07-28 at 02 47 16
  2. Click on New organization secret to add your token

Screenshot 2023-08-03 at 01 34 34
  1. Add your secret name as GH_TOKEN and paste your previously generated token in the secret input field and before clicking Add secret be sure to set the access to "All Repositories" or "Private and internal repositories" as applicable.
info

Given this is a privileged token, you may also want to consider selected repositories but this will create more overhead when onboarding a new application/repository.

Screenshot 2023-08-03 at 01 37 10