Creating a GitHub personal access token
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from GitHub’s own documentation: Managing your personal access tokens. Retrieved 2026-07-03.
Fine-grained token (recommended)
Section titled “Fine-grained token (recommended)”- Verify your email address, if it hasn’t been verified yet.
- In the upper-right corner of any page, click your profile picture, then Settings.
- In the left sidebar, click Developer settings.
- Under Personal access tokens, select Fine-grained tokens.
- Click Generate new token.
- Enter a Token name and select an Expiration.
- Under Resource owner, select the user or organization the token acts for.
- Under Repository access, choose which repositories the token can access.
- Under Permissions, grant the specific fine-grained permissions your flows need.
- Click Generate token and copy it (prefix
github_pat_).
Classic token
Section titled “Classic token”- Under Personal access tokens, click Tokens (classic).
- Select Generate new token → Generate new token (classic).
- Give it a descriptive Note, pick an Expiration, and select scopes (e.g.
repo). - Click Generate token and copy it (prefix
ghp_).
Operational notes: tokens are sent as Authorization: Bearer <token>; any token unused for one year is auto-revoked (token expiration and revocation).
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose GitHub, and pick GitHub personal access token. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: GitHub in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.