GitHub API
Set up a personal access token for the GitHub API.
getapi github
Prerequisites
- A GitHub account
Credentials
| Variable | Description | Sensitive |
|---|---|---|
GITHUB_TOKEN |
Personal access token (fine-grained or classic) | Secret |
Setup Steps
- 1 Info
- 2 Choice
- 3 Open URL
- 4 Info
- 5 Input
- 6 Validate
- 7 Open URL
- 8 Info
- 9 Input
- 10 Validate
Things to Know
- Tokens are only shown once when created. Store them immediately.
- Fine-grained tokens can be scoped to specific repositories — classic tokens apply to your entire account.
- Set an expiration date. Tokens without expiry are a security risk.
- For GitHub Actions, use repository secrets instead of personal access tokens.