GitHub

GitHub guide to fine-grained tokens

Fine-grained personal access tokens limit access to one owner, selected repositories, and specific permissions. Use this list to choose only what your command or integration needs.

Repository permissions

36 permissions

Available levels are listed below. “Write” includes read where supported. GitHub documents no separate admin level for these repository permissions; the Administration permission uses read or write.

PermissionAccessWhat it allows
ActionsRead, writeView or manage workflow runs, jobs, artifacts, caches, and repository runners.
AdministrationRead, writeManage repository settings, access, rules, visibility, transfer, or deletion.
Agent secretsRead, writeManage encrypted secrets used by GitHub Copilot coding agents.
Agent tasksRead, writeCreate, view, and manage tasks assigned to GitHub Copilot coding agents.
Agent variablesRead, writeManage non-secret variables used by GitHub Copilot coding agents.
Artifact metadataRead, writeRead or create storage and deployment records for published artifacts.
AttestationsRead, writeRead or create artifact provenance and software supply-chain attestations.
Code qualityRead, writeRead or manage code-quality and maintainability findings.
Code scanning alertsRead, writeView or manage CodeQL and other code-scanning security findings.
CodespacesRead, writeCreate, start, stop, and manage Codespaces for the repository.
Codespaces lifecycle adminRead, writeAdminister the lifecycle of repository Codespaces, including forced stop or deletion.
Codespaces metadataRead onlyView Codespace names, state, machine, owner, and other metadata.
Codespaces secretsWrite onlyManage encrypted secrets available inside Codespaces.
Commit statusesRead, writeRead or post pending, success, error, and failure statuses on commits.
ContentsRead, writeRead or change code, files, commits, branches, tags, and releases. Write access allows pushes.
Copilot agent settingsRead onlyView GitHub Copilot coding-agent configuration for the repository.
Custom propertiesRead, writeRead or set organization-defined property values on the repository.
Dependabot alertsRead, writeView or manage alerts for vulnerable dependencies.
Dependabot secretsRead, writeManage encrypted secrets Dependabot uses to access private registries.
DeploymentsRead, writeRead or create deployments and update their statuses.
DiscussionsRead, writeRead or manage discussions, comments, answers, and moderation.
EnvironmentsRead, writeManage deployment environments, protection rules, secrets, and variables.
IssuesRead, writeRead or manage issues, comments, labels, milestones, and assignees.
License compliance alertsNot documentedView or manage alerts for dependencies that violate license policies. Public documentation does not currently confirm its token access levels.
Merge queuesRead, writeView or manage pull requests in a repository merge queue.
MetadataRead onlyRead basic repository information. GitHub includes this permission automatically.
PagesRead, writeRead or manage GitHub Pages configuration, builds, domains, and deployments.
Pull requestsRead, writeRead or manage pull requests, reviews, comments, and requested reviewers.
Repository security advisoriesRead, writeRead, draft, update, and publish private vulnerability advisories.
Secret scanning alert dismissal requestsRead, writeReview requests to dismiss secret-scanning alerts.
Secret scanning alertsRead, writeView or manage alerts for credentials detected in repository history.
Secret scanning push protection bypass requestsRead, writeReview requests to bypass secret scanning when pushing detected credentials.
SecretsRead, writeManage encrypted secrets used by GitHub Actions workflows.
VariablesRead, writeManage non-secret variables used by GitHub Actions workflows.
WebhooksRead, writeRead or manage repository webhooks and delivery attempts.
WorkflowsWrite onlyChange files in .github/workflows. This permission is write-only.