Personal Access Token Request
This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "Creating a personal access token."
Actions
| Action | Sent when |
|---|---|
approved | A fine-grained personal access token request was approved. |
cancelled | A fine-grained personal access token request was cancelled by the requester. |
created | A fine-grained personal access token request was created. |
denied | A fine-grained personal access token request was denied. |
Payload
Fields of the delivery for the first action above. Every action shares the event's core fields.
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | |
personal_access_token_request | object | Yes | Details of a Personal Access Token Request. |
enterprise | object | No | An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured |
organization | object | Yes | A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an |
sender | object | Yes | A GitHub user. |
installation | object | Yes | The GitHub App installation. Webhook payloads contain the installation property when the event is configured |
Subscribing
To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission.