-
-
Notifications
You must be signed in to change notification settings - Fork 37
GitHub Personal Access Token
Having a GitHub personal access token (PAT) will allow you to access personal private repos. Normally, if you create a personal repo, you would have to make it a public repo and all UBA users can access it. But, if you want to make it a private repo and not allow other UBA users to access it, then you will need your own PAT to access it.
In your GitHub account, go to Profile/Settings/Developer Settings/Personal Access Tokens.
Click "Generate New Token".
Enter "UBA" for note and select unlimited expiration. Check "Full control of private repositories". Click "Generate". It will then create a token like "ghp_xxxxxxxxxxxxxxxxxxx". Copy this value. Create the directory structure under the UBA root as "secrets/github". In this directory, create a file "pat.txt" and paste the generated PAT into it.
To see if it gets loaded correctly, set config.developer config value to True. When UBA starts up, it should print "Using secrets/github/pat.txt".