Acerca de los permisos necesarios para los fine-grained personal access token
Cuando se crea un fine-grained personal access token, se le concede un conjunto de permisos. Los permisos definen a qué recursos puede acceder la GitHub App a través de la API. Para obtener más información, vea «Administración de tokens de acceso personal».
Para ayudarle a elegir los permisos correctos, recibirá el encabezado X-Accepted-GitHub-Permissions
en la respuesta de la API de REST. El encabezado le indicará qué permisos son necesarios para acceder al punto de conexión. Para obtener más información, vea «Solución de problemas de API de REST».
Estos permisos son necesarios para acceder a los recursos privados. Algunos puntos de conexión también se pueden usar para acceder a los recursos públicos sin estos permisos. Para ver si un punto de conexión puede acceder a recursos públicos sin un permiso, consulte la documentación de ese punto de conexión.
Algunos puntos de conexión requieren más de un permiso. Otros puntos de conexión funcionan con cualquier permiso de un conjunto de permisos. En estos casos, la columna "Permisos adicionales" incluirá una marca de verificación. Para más información sobre los permisos necesarios para usar el punto de conexión, consulte la documentación de ese punto de conexión.
Business permissions for "Enterprise administration"
Organization permissions for "API Insights"
Organization permissions for "Administration"
Organization permissions for "Blocking users"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
GET /users/{username}/events/orgs/{org} | read |
Organization permissions for "GitHub Copilot Business"
Organization permissions for "Members"
Organization permissions for "Organization announcement banners"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
POST /orgs/{org}/personal-access-token-requests | write | |
POST /orgs/{org}/personal-access-token-requests/{pat_request_id} | write | |
GET /orgs/{org}/personal-access-token-requests | read | |
GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories | read |
Organization permissions for "Personal access tokens"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id} | write | |
DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id} | write |
Organization permissions for "Variables"
Organization permissions for "Webhooks"
Repository permissions for "Actions"
Repository permissions for "Administration"
Repository permissions for "Attestations"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
PATCH /repos/{owner}/{repo}/properties/values | write |
Repository permissions for "Dependabot alerts"
punto de conexión | Access | Permisos adicionales |
---|---|---|
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"
punto de conexión | Access | Permisos adicionales |
---|---|---|
PUT /user/blocks/{username} | write | |
DELETE /user/blocks/{username} | write | |
GET /user/blocks | read | |
GET /user/blocks/{username} | read |