-
Notifications
You must be signed in to change notification settings - Fork 889
Personal Access Token (PAT) Setup
Jurriaan Pruijs edited this page May 24, 2024
·
4 revisions
In order to use github:unionlabs/union
references such as when building bundle-testnet
, you will need to configure a GitHub Personal Access Token (PAT) and tell Nix to use it.
This PAT only needs read access to the contents of unionlabs/union
. You create one as follows:
- Go to the fine-grained tokens page in settings
- Click "Generate new token"
- Set the following properties:
Expiry: 90 days
Resource owner: unionlabs
Repository access: Only select repositories > union
Repository permissions: Contents - read-only
- Click "Generate token"
- Copy the token to a secure location, such as a password manager
- Message @cor to ask him to approve your PAT request
mkdir -p ~/.config/nix
touch ~/.config/nix/nix.conf
- Insert
access-tokens = github.com=github_pat_XYZ123...