Adding GitHub token as an Org secret
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_TOKENand paste your previously generated token in the
secret input fieldand before clicking
Add secretbe sure to set the access to "All Repositories" or "Private and internal repositories" as applicable.
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.