Skip to main content
This guide explains how GitHub personal access tokens (classic and fine‑grained) are created and managed, and how organization administrators can control and approve fine‑grained token requests. It covers:
  • Differences between classic and fine‑grained tokens
  • How to create each type
  • Repository and permission selection for fine‑grained tokens
  • Organization approval workflow and administrative visibility
  • Best practices for secure handling
Within the Game Dev Studio organization you can control the creation and approval workflow for personal access tokens. In the organization settings, under the Third‑party access tab, there is a Personal access tokens section with three pages: Settings, Active tokens, and Pending requests.
A screenshot of a GitHub organization settings page for "game-devstudio," showing the Personal access tokens section with the Fine-grained tokens tab selected. The page displays options for allowing or restricting fine-grained tokens and settings for requiring administrator approval.

Overview — Classic vs Fine‑grained tokens

Use this quick comparison to decide which token model fits your needs. For more background on token types and recommended practices, see GitHub’s documentation on personal access tokens.

Classic personal access tokens (PATs)

Classic tokens are issued from a user account’s Developer settings and are configured with OAuth scopes such as repo, workflow, or admin:org. Scopes apply broadly to any repository the user already has permission to access — you cannot limit a classic token to specific repositories. To create a classic token, go to your user profile → Developer settings → Personal access tokens → Classic and choose the OAuth scopes you need.
A screenshot of the GitHub Developer Settings page for creating a new personal access token (classic), showing fields for the token name, expiration date, and selectable OAuth scopes. The main area lists various scope checkboxes (with "repo" checked), and the left sidebar highlights "Personal access tokens."
When a classic token is generated it is immediately active and you will see the token value once. Copy and store it securely because GitHub will not show it again after you leave the page.
Classic tokens grant permissions based on OAuth scopes (for example, repo) that apply to all repositories the user can access. For least‑privilege access, prefer finer‑grained credentials where possible.

Fine‑grained personal access tokens

Fine‑grained tokens give you precise control over the resource owner (user or organization), expiration, repository scope, and per-feature permissions such as Actions, Codespaces, Issues, and more. They are ideal when you need to limit access to a subset of repositories and specific actions. When creating a fine‑grained token you can:
  • Select the resource owner (your user account or an organization)
  • Set an expiration date
  • Limit access to specific repositories (single repo or multiple selected repos)
  • Choose granular permissions per resource type (Read, Read & Write, etc.)
A dark-themed screenshot of GitHub's Developer Settings page for creating a new fine-grained personal access token, showing the token name "fine-grained-token-test", resource owner, and a 7-day expiration date. The left sidebar lists Developer Settings options like GitHub Apps, OAuth Apps, and Personal access tokens.

Selecting repositories and permissions

Fine‑grained tokens let you choose whether the token can access all repositories, only public repositories, or a defined list of repositories. After selecting repositories, specify per-feature permissions (for example, Actions: Read & Write; Codespaces: Read; Metadata: Read) to adhere to least‑privilege principles.
A screenshot of the GitHub "Personal access tokens" settings page showing "Only select repositories" with a repository chosen and repository permissions (Actions, Codespaces, Metadata) listed. The "Generate token and request access" and "Cancel" buttons are visible at the bottom.

Organization approval workflow for fine‑grained tokens

Organizations can require administrator approval for fine‑grained tokens. When a user creates a fine‑grained token that targets an organization where approvals are enforced, the token is created in a pending state and remains inactive until an organization admin approves it. Even while pending, GitHub displays the token value to the user immediately after generation — copy it securely right away.
A GitHub Developer Settings page showing the Fine‑grained personal access tokens section with a newly generated token highlighted and a green notice instructing the user to copy the token now. The token entry includes buttons to copy or delete the token.
As an organization administrator you can inspect and manage pending token requests on the Pending requests tab. Each request includes:
  • Requesting user
  • Requested repositories and per-feature permissions
  • User-supplied reason for the request
From the Pending requests view you can Approve or Deny each request based on your organization policies.
A GitHub organization settings page showing a fine-grained personal access token request with the request reason, requested repository permissions, and Approve/Deny buttons. The left sidebar displays organization settings like Billing, Repository roles, Codespaces, and other options.

Settings and token visibility for organization admins

Organization admins can configure whether fine‑grained tokens require approval (this is enabled by default in many setups). Admins can also view Active tokens to track:
  • Which tokens exist for the organization
  • Token owners (who created them)
  • Expiration dates and last-used timestamps
This visibility helps administrators audit token usage and revoke tokens that are no longer needed.
A dark-themed GitHub organization settings page for "game-devstudio" showing the "Fine-grained personal access tokens" section. One token, "fine-grained-token-test", is listed (owner: sid-dev2-kk) with an expiration date.
Always copy token values immediately after generation and store them in a secure secrets manager. GitHub will not display the token again after you navigate away. Revoke tokens that are no longer needed and prefer fine‑grained tokens to enforce least‑privilege access.

Practical recommendations

  • Prefer fine‑grained tokens for new integrations to limit scope to specific repositories and permissions.
  • Use short expirations and rotate tokens regularly.
  • Store tokens in a secrets manager (Vault, AWS Secrets Manager, GitHub Secrets, etc.).
  • Monitor Active tokens and Pending requests periodically to detect unnecessary or risky access.
This guide should help you create, manage, and audit personal access tokens while following best practices for least‑privilege access and organizational control.

Watch Video