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
- Go to your GitHub Organization Home Page and navigate to Settings > Security > Secrets and Variables > Actions.
- Click on New organization secret to add your token
- Add your secret name as
GH_TOKEN
and paste your previously generated token in thesecret input field
and before clickingAdd 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.