Informationen zu den erforderlichen Berechtigungen für fine-grained personal access token
Wenn du ein fine-grained personal access token erstellst, erteilst du ihm bestimmte Berechtigungen. Berechtigungen definieren, auf welche Ressourcen die GitHub App über die API zugreifen kann. Weitere Informationen findest du unter Verwalten deiner persönlichen Zugriffstoken.
Sie erhalten den X-Accepted-GitHub-Permissions
-Header in der REST-API-Antwort, damit Sie die richtigen Berechtigungen auswählen können. Der Header teilt Ihnen mit, welche Berechtigungen erforderlich sind, um auf den Endpunkt zuzugreifen. Weitere Informationen findest du unter Problembehandlung der REST-API.
Diese Berechtigungen sind für den Zugriff auf private Ressourcen erforderlich. Einige Endpunkte können auch ohne diese Berechtigungen für den Zugriff auf öffentliche Ressourcen verwendet werden. Informationen dazu, ob ein Endpunkt ohne Berechtigung auf öffentliche Ressourcen zugreifen kann, finden Sie in der Dokumentation für den betreffenden Endpunkt.
Bei manchen Endpunkte ist mehr als eine Berechtigung erforderlich. Andere Endpunkte arbeiten mit einer beliebigen Berechtigung aus einer Gruppe von Berechtigungen. In diesen Fällen ist die Spalte „Zusätzliche Berechtigungen“ mit ein Häkchen versehen. Ausführliche Informationen zu den für die Verwendung des Endpunkts erforderlichen Berechtigungen finden Sie in der Dokumentation für den betreffenden Endpunkt.
Business permissions for "Enterprise administration"
Organization permissions for "Administration"
Organization permissions for "Blocking users"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PUT /orgs/{org}/blocks/{username} | write | |
DELETE /orgs/{org}/blocks/{username} | write | |
GET /orgs/{org}/blocks | read | |
GET /orgs/{org}/blocks/{username} | read |
Organization permissions for "Custom organization roles"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /orgs/{org}/organization-roles | write | |
PATCH /orgs/{org}/organization-roles/{role_id} | write | |
DELETE /orgs/{org}/organization-roles/{role_id} | write | |
GET /orgs/{org}/organization-fine-grained-permissions | read | |
GET /orgs/{org}/organization-roles | read | |
GET /orgs/{org}/organization-roles/{role_id} | read |
Organization permissions for "Custom properties"
Organization permissions for "Custom repository roles"
Organization permissions for "Events"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
GET /users/{username}/events/orgs/{org} | read |
Organization permissions for "GitHub Copilot Business"
Organization permissions for "Members"
Organization permissions for "Organization announcement banners"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PATCH /orgs/{org}/announcement | write | |
DELETE /orgs/{org}/announcement | write | |
GET /orgs/{org}/announcement | read |
Organization permissions for "Organization codespaces secrets"
Organization permissions for "Organization codespaces settings"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PUT /orgs/{org}/codespaces/access | write | |
POST /orgs/{org}/codespaces/access/selected_users | write | |
DELETE /orgs/{org}/codespaces/access/selected_users | write |
Organization permissions for "Organization codespaces"
Organization permissions for "Organization dependabot secrets"
Organization permissions for "Personal access token requests"
Organization permissions for "Personal access tokens"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /orgs/{org}/personal-access-tokens | write | |
POST /orgs/{org}/personal-access-tokens/{pat_id} | write | |
GET /orgs/{org}/personal-access-tokens | read | |
GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories | read |
Organization permissions for "Projects"
Organization permissions for "Secrets"
Organization permissions for "Self-hosted runners"
Organization permissions for "Team discussions"
Organization permissions for "Variables"
Organization permissions for "Webhooks"
Repository permissions for "Actions"
Repository permissions for "Administration"
Repository permissions for "Attestations"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /repos/{owner}/{repo}/attestations | write | |
GET /repos/{owner}/{repo}/attestations/{subject_digest} | read |
Repository permissions for "Checks"
Repository permissions for "Code scanning alerts"
Repository permissions for "Codespaces lifecycle admin"
Repository permissions for "Codespaces metadata"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
GET /repos/{owner}/{repo}/codespaces/devcontainers | read | |
GET /repos/{owner}/{repo}/codespaces/machines | read | |
GET /user/codespaces/{codespace_name}/machines | read |
Repository permissions for "Codespaces secrets"
Repository permissions for "Codespaces"
Repository permissions for "Commit statuses"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /repos/{owner}/{repo}/statuses/{sha} | write | |
GET /repos/{owner}/{repo}/commits/{ref}/status | read | |
GET /repos/{owner}/{repo}/commits/{ref}/statuses | read |
Repository permissions for "Contents"
Repository permissions for "Custom properties"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PATCH /repos/{owner}/{repo}/properties/values | write |
Repository permissions for "Dependabot alerts"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number} | write | |
GET /orgs/{org}/dependabot/alerts | read | |
GET /repos/{owner}/{repo}/dependabot/alerts | read | |
GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number} | read |
Repository permissions for "Dependabot secrets"
Repository permissions for "Deployments"
Repository permissions for "Environments"
Repository permissions for "Issues"
Repository permissions for "Metadata"
Repository permissions for "Pages"
Repository permissions for "Projects"
Repository permissions for "Pull requests"
Repository permissions for "Repository security advisories"
Repository permissions for "Secret scanning alerts"
Repository permissions for "Secrets"
Repository permissions for "Variables"
Repository permissions for "Webhooks"
Repository permissions for "Workflows"
User permissions for "Block another user"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PUT /user/blocks/{username} | write | |
DELETE /user/blocks/{username} | write | |
GET /user/blocks | read | |
GET /user/blocks/{username} | read |
User permissions for "Codespaces user secrets"
User permissions for "Email addresses"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PATCH /user/email/visibility | write | |
POST /user/emails | write | |
DELETE /user/emails | write | |
GET /user/emails | read | |
GET /user/public_emails | read |
User permissions for "Followers"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PUT /user/following/{username} | write | |
DELETE /user/following/{username} | write | |
GET /user/followers | read | |
GET /user/following | read | |
GET /user/following/{username} | read |
User permissions for "GPG keys"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /user/gpg_keys | write | |
DELETE /user/gpg_keys/{gpg_key_id} | write | |
GET /user/gpg_keys | read | |
GET /user/gpg_keys/{gpg_key_id} | read |
User permissions for "Gists"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /gists | write | |
PATCH /gists/{gist_id} | write | |
DELETE /gists/{gist_id} | write | |
POST /gists/{gist_id}/comments | write | |
PATCH /gists/{gist_id}/comments/{comment_id} | write | |
DELETE /gists/{gist_id}/comments/{comment_id} | write | |
POST /gists/{gist_id}/forks | write | |
PUT /gists/{gist_id}/star | write | |
DELETE /gists/{gist_id}/star | write |
User permissions for "Git SSH keys"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /user/keys | write | |
DELETE /user/keys/{key_id} | write | |
GET /user/keys | read | |
GET /user/keys/{key_id} | read | |
GET /users/{username}/keys | read |
User permissions for "Interaction limits"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PUT /user/interaction-limits | write | |
DELETE /user/interaction-limits | write | |
GET /user/interaction-limits | read |
User permissions for "Notifications"
User permissions for "Plan"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
GET /users/{username}/settings/billing/actions | read | |
GET /users/{username}/settings/billing/packages | read | |
GET /users/{username}/settings/billing/shared-storage | read |
User permissions for "Profile"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
PATCH /user | write | |
POST /user/social_accounts | write | |
DELETE /user/social_accounts | write |
User permissions for "SSH signing keys"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
POST /user/ssh_signing_keys | write | |
DELETE /user/ssh_signing_keys/{ssh_signing_key_id} | write | |
GET /user/ssh_signing_keys | read | |
GET /user/ssh_signing_keys/{ssh_signing_key_id} | read |
User permissions for "Starring"
User permissions for "Watching"
Endpunkt | Access | Zusätzliche Berechtigungen |
---|---|---|
GET /user/subscriptions | read | |
GET /users/{username}/subscriptions | read |