Skip to content

Create the GitHub Token

dxcufgb edited this page Nov 5, 2026 · 2 revisions

Create the GitHub token

The proxy holds a read-only GitHub token to read the private module repositories. Limit it to the module repositories.

  1. GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token.
  2. Resource owner: the account/org that owns the module repos.
  3. Expiration: set one (e.g. 90 days to 1 year) and put the date in your calendar.
  4. Repository access → Only select repositories: pick only the module repos listed in config.json (e.g. FoundryVTT-ghpg-Transformations).
  5. Permissions → Repository permissions → Contents: Read-only. This also covers releases and their assets. Leave everything else at "No access" (Metadata: read-only is added automatically).
  6. Generate and copy the github_pat_... token (shown once).

A 404 for a release can also mean the token cannot see that repo (GitHub hides private repos with 404), so when a module is not found, check the token's repository access first. Each module you add later needs its repository added to the token's access as well; see Adding Another Private Module.

Rotating

Before the expiry, generate a new token the same way (or use Regenerate token on the existing one).

  • On the admin page: on the Admin Page under GitHub token, click Add new token, paste it and press Add (with no token set yet, paste it into the field on the page and press Save token): the proxy checks it with GitHub, saves it to env and uses it at once. Test setup then shows what the new token can read.
  • Without the admin page: sudo nano /etc/foundry-release-proxy/env, replace GITHUB_TOKEN, and sudo systemctl restart foundry-release-proxy.

Delete the old token on GitHub afterwards. The daily check e-mails you two weeks before the token expires and again if it lapses.

Next: install on Linux or on Windows.

Clone this wiki locally