GitHub Appに設定可能な権限とイベント一覧

GitHub Appで設定できる権限(permissions)とウェブフックで受け取るイベント(event)の一覧です。

## Permissions

### repository

| Name | Permissions | Description | Docs |
| --- | --- | --- | --- |
| `actions` | `none`<br>`read`<br>`write` | Workflows, workflow runs and artifacts. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-actions)
| `administration` | `none`<br>`read`<br>`write` | Repository creation, deletion, settings, teams, and collaborators. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-administration)
| `attestations` | `none`<br>`read`<br>`write` | Create and retrieve attestations for a repository. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-attestations)
| `checks` | `none`<br>`read`<br>`write` | Checks on code. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-checks)
| `security_events` | `none`<br>`read`<br>`write` | View and manage code scanning alerts. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-code-scanning-alerts)
| `codespaces` | `none`<br>`read`<br>`write` | Create, edit, delete and list Codespaces. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces)
| `codespaces_lifecycle_admin` | `none`<br>`read`<br>`write` | Manage the lifecycle of Codespaces, including starting and stopping. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces-lifecycle-admin)
| `codespaces_metadata` | `none`<br>`read` | Access Codespaces metadata including the devcontainers and machine type. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces-metadata)
| `codespaces_secrets` | `none`<br>`write` | Restrict Codespaces user secrets modifications to specific repositories. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces-secrets)
| `statuses` | `none`<br>`read`<br>`write` | Commit statuses. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-commit-statuses)
| `contents` | `none`<br>`read`<br>`write` | Repository contents, commits, branches, downloads, releases, and merges. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-contents)
| `repository_custom_properties` | `none`<br>`read`<br>`write` | View and set values for a repository's custom properties, when allowed by the property. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-custom-properties)
| `vulnerability_alerts` | `none`<br>`read`<br>`write` | Retrieve Dependabot alerts. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-dependabot-alerts)
| `dependabot_secrets` | `none`<br>`read`<br>`write` | Manage Dependabot repository secrets. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-dependabot-secrets)
| `deployments` | `none`<br>`read`<br>`write` | Deployments and deployment statuses. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-deployments)
| `discussions` | `none`<br>`read`<br>`write` | Discussions and related comments and labels. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-discussions)
| `environments` | `none`<br>`read`<br>`write` | Manage repository environments. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-environments)
| `issues` | `none`<br>`read`<br>`write` | Issues and related comments, assignees, labels, and milestones. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-issues)
| `merge_queues` | `none`<br>`read`<br>`write` | Manage a repository's merge queues | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-merge-queues)
| `metadata` | `none`<br>`read` | Search repositories, list collaborators, and access repository metadata. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-metadata)
| `packages` | `none`<br>`read`<br>`write` | Packages published to the GitHub Package Platform. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-packages)
| `pages` | `none`<br>`read`<br>`write` | Retrieve Pages statuses, configuration, and builds, as well as create new builds. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-pages)
| `repository_projects` | `none`<br>`read`<br>`write`<br>`admin` | Manage classic projects within a repository. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-projects)
| `pull_requests` | `none`<br>`read`<br>`write` | Pull requests and related comments, assignees, labels, milestones, and merges. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-pull-requests)
| `repository_advisories` | `none`<br>`read`<br>`write` | View and manage repository security advisories. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-repository-security-advisories)
| `secret_scanning_alerts` | `none`<br>`read`<br>`write` | View and manage secret scanning alerts. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-secret-scanning-alerts)
| `secrets` | `none`<br>`read`<br>`write` | Manage Actions repository secrets. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-secrets)
| `single_file` | `none`<br>`read`<br>`write` | Manage just a single file. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-single-file)
| `actions_variables` | `none`<br>`read`<br>`write` | Manage Actions repository variables. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-variables)
| `repository_hooks` | `none`<br>`read`<br>`write` | Manage the post-receive hooks for a repository. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-webhooks)
| `workflows` | `none`<br>`write` | Update GitHub Action workflow files. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-workflows)

### organization

| Name | Permissions | Description | Docs |
| --- | --- | --- | --- |
| `organization_api_insights` | `none`<br>`read` | View statistics on how the API is being used for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-api-insights)
| `organization_administration` | `none`<br>`read`<br>`write` | Manage access to an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-administration)
| `organization_user_blocking` | `none`<br>`read`<br>`write` | View and manage users blocked by the organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-blocking-users)
| `organization_custom_org_roles` | `none`<br>`read`<br>`write` | Create, edit, delete and list custom organization roles. View system organization roles. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-custom-organization-roles)
| `organization_custom_properties` | `none`<br>`read`<br>`write`<br>`admin` | View custom properties, write repository values, and administer definitions. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-custom-properties)
| `organization_custom_roles` | `none`<br>`read`<br>`write` | Create, edit, delete and list custom repository roles. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-custom-repository-roles)
| `organization_events` | `none`<br>`read` | View events triggered by an activity in an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-events)
| `organization_copilot_seat_management` | `none`<br>`read`<br>`write` | Manage Copilot Business seats and settings | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-github-copilot-business)
| `issue_types` | `none`<br>`read`<br>`write` | Manage issue types for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-issue-types)
| `organization_knowledge_bases` | `none`<br>`read`<br>`write` | View and manage knowledge bases for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-knowledge-bases)
| `members` | `none`<br>`read`<br>`write` | Organization members and teams. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-members)
| `organization_network_configurations` | `none`<br>`read`<br>`write` | View and manage hosted compute network configurations available to an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-network-configurations)
| `organization_announcement_banners` | `none`<br>`read`<br>`write` | View and modify announcement banners for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-announcement-banners)
| `organization_codespaces` | `none`<br>`read`<br>`write` | Manage Codespaces for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-codespaces)
| `organization_codespaces_secrets` | `none`<br>`read`<br>`write` | Manage Codespaces Secrets for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-codespaces-secrets)
| `organization_codespaces_settings` | `none`<br>`read`<br>`write` | Manage Codespaces settings for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-codespaces-settings)
| `organization_dependabot_secrets` | `none`<br>`read`<br>`write` | Manage Dependabot organization secrets. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-dependabot-secrets)
| `organization_private_registries` | `none`<br>`read`<br>`write` | Manage private registries for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-private-registries)
| `organization_personal_access_token_requests` | `none`<br>`read`<br>`write` | Manage personal access token requests from organization members. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-personal-access-token-requests)
| `organization_personal_access_tokens` | `none`<br>`read`<br>`write` | View and revoke personal access tokens that have been granted access to an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-personal-access-tokens)
| `organization_plan` | `none`<br>`read` | View an organization's plan. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-plan)
| `organization_projects` | `none`<br>`read`<br>`write`<br>`admin` | Manage projects for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-projects)
| `organization_secrets` | `none`<br>`read`<br>`write` | Manage Actions organization secrets. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-secrets)
| `organization_self_hosted_runners` | `none`<br>`read`<br>`write` | View and manage Actions self-hosted runners available to an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-self-hosted-runners)
| `team_discussions` | `none`<br>`read`<br>`write` | Manage team discussions and related comments. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-team-discussions)
| `organization_actions_variables` | `none`<br>`read`<br>`write` | Manage Actions organization variables. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-variables)
| `organization_hooks` | `none`<br>`read`<br>`write` | Manage the post-receive hooks for an organization. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-webhooks)

### user

| Name | Permissions | Description | Docs |
| --- | --- | --- | --- |
| `blocking` | `none`<br>`read`<br>`write` | View and manage users blocked by the user. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-block-another-user)
| `codespaces_user_secrets` | `none`<br>`read`<br>`write` | Manage Codespaces user secrets. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-codespaces-user-secrets)
| `copilot_messages` | `none`<br>`read` | This application will receive your GitHub ID, your GitHub Copilot Chat session messages (not including messages sent to another application), and timestamps of provided GitHub Copilot Chat session messages. This permission must be enabled for Copilot Extensions. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-copilot-chat)
| `copilot_editor_context` | `none`<br>`read` | This application will receive bits of Editor Context (e.g. currently opened file) whenever you send it a message through Copilot Chat. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-copilot-editor-context)
| `emails` | `none`<br>`read`<br>`write` | Manage a user's email addresses. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-email-addresses)
| `user_events` | `none`<br>`read` | View events triggered by a user's activity. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-events)
| `followers` | `none`<br>`read`<br>`write` | A user's followers | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-followers)
| `gpg_keys` | `none`<br>`read`<br>`write` | View and manage a user's GPG keys. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-gpg-keys)
| `gists` | `none`<br>`write` | Create and modify a user's gists and comments. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-gists)
| `keys` | `none`<br>`read`<br>`write` | Git SSH keys | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-git-ssh-keys)
| `interaction_limits` | `none`<br>`read`<br>`write` | Interaction limits on repositories | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-interaction-limits)
| `knowledge_bases` | `none`<br>`read`<br>`write` | View knowledge bases for a user. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-knowledge-bases)
| `plan` | `none`<br>`read` | View a user's plan. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-plan)
| `profile` | `none`<br>`write` | Manage a user's profile settings. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-profile)
| `git_signing_ssh_public_keys` | `none`<br>`read`<br>`write` | View and manage a user's SSH signing keys. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-ssh-signing-keys)
| `starring` | `none`<br>`read`<br>`write` | List and manage repositories a user is starring. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-starring)
| `watching` | `none`<br>`read`<br>`write` | List and change repositories a user is subscribed to. | [📚](https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-watching)


## Events

| Name | Resource | Description | Docs |
| --- | --- | --- | --- |
| `installation_target` |  | A GitHub App installation target is renamed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_target)
| `meta` |  | When this App is deleted and the associated hook is removed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#meta)
| `security_advisory` |  | Security advisory published, updated, or withdrawn. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory)
| `branch_protection_configuration` | `administration` | All branch protections disabled or enabled for a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_configuration)
| `branch_protection_rule` | `administration` | Branch protection rule created, deleted or edited. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule)
| `code_scanning_alert` | `security_events` | Code Scanning alert created, fixed in branch, or closed | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#code_scanning_alert)
| `check_run` | `checks` | Check run is created, requested, rerequested, or completed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#check_run)
| `check_suite` | `checks` | Check suite is requested, rerequested, or completed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#check_suite)
| `commit_comment` | `contents` | Commit or diff commented on. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#commit_comment)
| `create` | `contents` | Branch or tag created. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#create)
| `custom_property` | `organization_custom_properties` | Custom property is created, updated, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#custom_property)
| `custom_property_values` | `organization_custom_properties` | Custom property values are changed for a repository | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#custom_property_values)
| `discussion` | `discussions` | Discussion created, edited, closed, reopened, pinned, unpinned, locked, unlocked, transferred, answered, unanswered, labeled, unlabeled, had its category changed, or was deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion)
| `discussion_comment` | `discussions` | Discussion comment created, edited, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion_comment)
| `delete` | `contents` | Branch or tag deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#delete)
| `dependabot_alert` | `vulnerability_alerts` | Dependabot alert auto_dismissed, auto_reopened, created, dismissed, reopened, fixed, or reintroduced. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot_alert)
| `deploy_key` | `deployments` | A deploy key is created or deleted from a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deploy_key)
| `deployment` | `deployments` | Repository was deployed or a deployment was deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment)
| `deployment_protection_rule` | `deployments` | Deployment protection rule requested for an environment. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_protection_rule)
| `deployment_review` | `deployments` | Deployment review requested, approved or rejected | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_review)
| `deployment_status` | `deployments` | Deployment status updated from the API. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_status)
| `exemption_request_push_ruleset` | `administration` | Push ruleset bypass request was created, cancelled, completed, received a response, or a response was dismissed.<br><br>    Note: Delegated bypass for push rules is currently in beta and subject to change. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#exemption_request_push_ruleset)
| `exemption_request_secret_scanning` | `secret_scanning_alerts` | Secret scanning push protection bypass request was created, cancelled, completed, received a response, or a response was dismissed.<br><br>Note: Delegated bypass for push protection is currently in beta and subject to change. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#exemption_request_secret_scanning)
| `fork` | `contents` | Repository forked. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#fork)
| `gollum` | `contents` | Wiki page updated. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#gollum)
| `issue_comment` | `issues` | Issue comment created, edited, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment)
| `issues` | `issues` | Issue opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, milestoned, demilestoned, locked, or unlocked. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issues)
| `installation_target` |  | A GitHub App installation target is renamed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_target)
| `label` | `metadata` | Label created, edited or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#label)
| `milestone` | `issues`,`pull_requests` | Milestone created, closed, opened, edited, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#milestone)
| `member` | `administration`,`members` | Collaborator added to, removed from, or has changed permissions for a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#member)
| `membership` | `members` | Team membership added or removed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#membership)
| `merge_group` | `merge_queues` | Merge Group requested checks, or was destroyed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#merge_group)
| `merge_queue_entry` | `pull_requests` | Merge Queue entry added | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#merge_queue_entry)
| `meta` |  | When this App is deleted and the associated hook is removed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#meta)
| `organization` | `members` | Organization deleted, renamed, member invited, member added, or member removed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#organization)
| `page_build` | `pages` | Pages site built. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#page_build)
| `personal_access_token_request` | `organization_personal_access_token_requests` | Personal access token request created, approved, denied, or cancelled. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#personal_access_token_request)
| `project` | `organization_projects`,`repository_projects` | Project created, updated, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#project)
| `project_card` | `organization_projects`,`repository_projects` | Project card created, updated, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#project_card)
| `project_column` | `organization_projects`,`repository_projects` | Project column created, updated, moved or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#project_column)
| `projects_v2_item` | `organization_projects` | Project item created, edited, deleted, archived, restored, converted, or reordered. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_item)
| `projects_v2` | `organization_projects` | Project created, updated, deleted, closed, or reopened. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2)
| `projects_v2_status_update` | `organization_projects` | Project status updates created, updated, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_status_update)
| `public` | `metadata` | Repository changes from private to public. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#public)
| `pull_request` | `pull_requests` | Pull request assigned, auto merge disabled, auto merge enabled, closed, converted to draft, demilestoned, dequeued, edited, enqueued, labeled, locked, milestoned, opened, ready for review, reopened, review request removed, review requested, synchronized, unassigned, unlabeled, or unlocked. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request)
| `pull_request_review` | `pull_requests` | Pull request review submitted, edited, or dismissed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review)
| `pull_request_review_comment` | `pull_requests` | Pull request diff comment created, edited, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_comment)
| `pull_request_review_thread` | `pull_requests` | A pull request review thread was resolved or unresolved. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_thread)
| `push` | `contents` | Git push to a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push)
| `registry_package` | `packages` | Registry package published or updated in a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#registry_package)
| `release` | `contents` | Release created, edited, published, unpublished, or deleted. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#release)
| `repository` | `metadata` | Repository created, deleted, archived, unarchived, publicized, privatized, edited, renamed, or transferred. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository)
| `repository_dispatch` | `contents` | When a message is dispatched from a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_dispatch)
| `repository_ruleset` | `administration`,`organization_administration` | Repository ruleset created, deleted or edited. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_ruleset)
| `security_and_analysis` | `administration` | Code security features enabled or disabled for a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#security_and_analysis)
| `secret_scanning_alert` | `secret_scanning_alerts` | Secrets scanning alert created, resolved, reopened, validated, or publicly leaked. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert)
| `secret_scanning_alert_location` | `secret_scanning_alerts` | Secrets scanning alert location created. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert_location)
| `secret_scanning_scan` | `secret_scanning_alerts` | Secrets scanning scan completed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_scan)
| `star` | `metadata` | A star is created or deleted from a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#star)
| `status` | `statuses` | Commit status updated from the API. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#status)
| `team` | `members` | Team is created, deleted, edited, or added to/removed from a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#team)
| `team_add` | `members` | Team added or modified on a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#team_add)
| `watch` | `metadata` | User stars a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#watch)
| `workflow_dispatch` | `contents` | A manual workflow run is requested. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch)
| `workflow_job` | `actions`,`contents` | Workflow job queued, waiting, in progress, or completed on a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job)
| `workflow_run` | `actions`,`contents` | Workflow run requested or completed on a repository. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run)
| `org_block` | `organization_administration` | A user has been blocked or unblocked. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#org_block)
| `repository_advisory` | `repository_advisories` | Repository advisory published or reported. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_advisory)
| `sub_issues` | `issues` | Sub-issues added or removed, and parent issues added or removed. | [📚](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#sub_issues)

## permissions-and-events.json

上のテーブルの内容をプログラムで処理できるように整形したデータです。

```permissions-and-events.json
{
  "permissions": [
    {
      "title": "Actions",
      "description": "Workflows, workflow runs and artifacts.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-actions",
      "resourceParent": "repository",
      "resource": "actions",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Administration",
      "description": "Repository creation, deletion, settings, teams, and collaborators.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-administration",
      "resourceParent": "repository",
      "resource": "administration",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Attestations",
      "description": "Create and retrieve attestations for a repository.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-attestations",
      "resourceParent": "repository",
      "resource": "attestations",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Checks",
      "description": "Checks on code.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-checks",
      "resourceParent": "repository",
      "resource": "checks",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Code scanning alerts",
      "description": "View and manage code scanning alerts.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-code-scanning-alerts",
      "resourceParent": "repository",
      "resource": "security_events",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Codespaces",
      "description": "Create, edit, delete and list Codespaces.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces",
      "resourceParent": "repository",
      "resource": "codespaces",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Codespaces lifecycle admin",
      "description": "Manage the lifecycle of Codespaces, including starting and stopping.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces-lifecycle-admin",
      "resourceParent": "repository",
      "resource": "codespaces_lifecycle_admin",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Codespaces metadata",
      "description": "Access Codespaces metadata including the devcontainers and machine type.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces-metadata",
      "resourceParent": "repository",
      "resource": "codespaces_metadata",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Codespaces secrets",
      "description": "Restrict Codespaces user secrets modifications to specific repositories.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-codespaces-secrets",
      "resourceParent": "repository",
      "resource": "codespaces_secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "write"
      ]
    },
    {
      "title": "Commit statuses",
      "description": "Commit statuses.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-commit-statuses",
      "resourceParent": "repository",
      "resource": "statuses",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Contents",
      "description": "Repository contents, commits, branches, downloads, releases, and merges.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-contents",
      "resourceParent": "repository",
      "resource": "contents",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Custom properties",
      "description": "View and set values for a repository's custom properties, when allowed by the property.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-custom-properties",
      "resourceParent": "repository",
      "resource": "repository_custom_properties",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Dependabot alerts",
      "description": "Retrieve Dependabot alerts.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-dependabot-alerts",
      "resourceParent": "repository",
      "resource": "vulnerability_alerts",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Dependabot secrets",
      "description": "Manage Dependabot repository secrets.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-dependabot-secrets",
      "resourceParent": "repository",
      "resource": "dependabot_secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Deployments",
      "description": "Deployments and deployment statuses.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-deployments",
      "resourceParent": "repository",
      "resource": "deployments",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Discussions",
      "description": "Discussions and related comments and labels.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-discussions",
      "resourceParent": "repository",
      "resource": "discussions",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Environments",
      "description": "Manage repository environments.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-environments",
      "resourceParent": "repository",
      "resource": "environments",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Issues",
      "description": "Issues and related comments, assignees, labels, and milestones.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-issues",
      "resourceParent": "repository",
      "resource": "issues",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Merge queues",
      "description": "Manage a repository's merge queues",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-merge-queues",
      "resourceParent": "repository",
      "resource": "merge_queues",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Metadata",
      "description": "Search repositories, list collaborators, and access repository metadata.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-metadata",
      "resourceParent": "repository",
      "resource": "metadata",
      "mandatory": true,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Packages",
      "description": "Packages published to the GitHub Package Platform.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-packages",
      "resourceParent": "repository",
      "resource": "packages",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Pages",
      "description": "Retrieve Pages statuses, configuration, and builds, as well as create new builds.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-pages",
      "resourceParent": "repository",
      "resource": "pages",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Projects",
      "description": "Manage classic projects within a repository.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-projects",
      "resourceParent": "repository",
      "resource": "repository_projects",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write",
        "admin"
      ]
    },
    {
      "title": "Pull requests",
      "description": "Pull requests and related comments, assignees, labels, milestones, and merges.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-pull-requests",
      "resourceParent": "repository",
      "resource": "pull_requests",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Repository security advisories",
      "description": "View and manage repository security advisories.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-repository-security-advisories",
      "resourceParent": "repository",
      "resource": "repository_advisories",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Secret scanning alerts",
      "description": "View and manage secret scanning alerts.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-secret-scanning-alerts",
      "resourceParent": "repository",
      "resource": "secret_scanning_alerts",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Secrets",
      "description": "Manage Actions repository secrets.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-secrets",
      "resourceParent": "repository",
      "resource": "secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Single file",
      "description": "Manage just a single file.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-single-file",
      "resourceParent": "repository",
      "resource": "single_file",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Variables",
      "description": "Manage Actions repository variables.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-variables",
      "resourceParent": "repository",
      "resource": "actions_variables",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Webhooks",
      "description": "Manage the post-receive hooks for a repository.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-webhooks",
      "resourceParent": "repository",
      "resource": "repository_hooks",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Workflows",
      "description": "Update GitHub Action workflow files.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#repository-permissions-for-workflows",
      "resourceParent": "repository",
      "resource": "workflows",
      "mandatory": false,
      "permissions": [
        "none",
        "write"
      ]
    },
    {
      "title": "API Insights",
      "description": "View statistics on how the API is being used for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-api-insights",
      "resourceParent": "organization",
      "resource": "organization_api_insights",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Administration",
      "description": "Manage access to an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-administration",
      "resourceParent": "organization",
      "resource": "organization_administration",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Blocking users",
      "description": "View and manage users blocked by the organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-blocking-users",
      "resourceParent": "organization",
      "resource": "organization_user_blocking",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Custom organization roles",
      "description": "Create, edit, delete and list custom organization roles. View system organization roles.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-custom-organization-roles",
      "resourceParent": "organization",
      "resource": "organization_custom_org_roles",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Custom properties",
      "description": "View custom properties, write repository values, and administer definitions.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-custom-properties",
      "resourceParent": "organization",
      "resource": "organization_custom_properties",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write",
        "admin"
      ]
    },
    {
      "title": "Custom repository roles",
      "description": "Create, edit, delete and list custom repository roles.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-custom-repository-roles",
      "resourceParent": "organization",
      "resource": "organization_custom_roles",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Events",
      "description": "View events triggered by an activity in an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-events",
      "resourceParent": "organization",
      "resource": "organization_events",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "GitHub Copilot Business",
      "description": "Manage Copilot Business seats and settings",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-github-copilot-business",
      "resourceParent": "organization",
      "resource": "organization_copilot_seat_management",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Issue Types",
      "description": "Manage issue types for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-issue-types",
      "resourceParent": "organization",
      "resource": "issue_types",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Knowledge bases",
      "description": "View and manage knowledge bases for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-knowledge-bases",
      "resourceParent": "organization",
      "resource": "organization_knowledge_bases",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Members",
      "description": "Organization members and teams.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-members",
      "resourceParent": "organization",
      "resource": "members",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Network configurations",
      "description": "View and manage hosted compute network configurations available to an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-network-configurations",
      "resourceParent": "organization",
      "resource": "organization_network_configurations",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Organization announcement banners",
      "description": "View and modify announcement banners for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-announcement-banners",
      "resourceParent": "organization",
      "resource": "organization_announcement_banners",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Organization codespaces",
      "description": "Manage Codespaces for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-codespaces",
      "resourceParent": "organization",
      "resource": "organization_codespaces",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Organization codespaces secrets",
      "description": "Manage Codespaces Secrets for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-codespaces-secrets",
      "resourceParent": "organization",
      "resource": "organization_codespaces_secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Organization codespaces settings",
      "description": "Manage Codespaces settings for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-codespaces-settings",
      "resourceParent": "organization",
      "resource": "organization_codespaces_settings",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Organization dependabot secrets",
      "description": "Manage Dependabot organization secrets.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-dependabot-secrets",
      "resourceParent": "organization",
      "resource": "organization_dependabot_secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Organization private registries",
      "description": "Manage private registries for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-organization-private-registries",
      "resourceParent": "organization",
      "resource": "organization_private_registries",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Personal access token requests",
      "description": "Manage personal access token requests from organization members.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-personal-access-token-requests",
      "resourceParent": "organization",
      "resource": "organization_personal_access_token_requests",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Personal access tokens",
      "description": "View and revoke personal access tokens that have been granted access to an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-personal-access-tokens",
      "resourceParent": "organization",
      "resource": "organization_personal_access_tokens",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Plan",
      "description": "View an organization's plan.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-plan",
      "resourceParent": "organization",
      "resource": "organization_plan",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Projects",
      "description": "Manage projects for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-projects",
      "resourceParent": "organization",
      "resource": "organization_projects",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write",
        "admin"
      ]
    },
    {
      "title": "Secrets",
      "description": "Manage Actions organization secrets.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-secrets",
      "resourceParent": "organization",
      "resource": "organization_secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Self-hosted runners",
      "description": "View and manage Actions self-hosted runners available to an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-self-hosted-runners",
      "resourceParent": "organization",
      "resource": "organization_self_hosted_runners",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Team discussions",
      "description": "Manage team discussions and related comments.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-team-discussions",
      "resourceParent": "organization",
      "resource": "team_discussions",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Variables",
      "description": "Manage Actions organization variables.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-variables",
      "resourceParent": "organization",
      "resource": "organization_actions_variables",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Webhooks",
      "description": "Manage the post-receive hooks for an organization.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#organization-permissions-for-webhooks",
      "resourceParent": "organization",
      "resource": "organization_hooks",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Block another user",
      "description": "View and manage users blocked by the user.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-block-another-user",
      "resourceParent": "user",
      "resource": "blocking",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Codespaces user secrets",
      "description": "Manage Codespaces user secrets.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-codespaces-user-secrets",
      "resourceParent": "user",
      "resource": "codespaces_user_secrets",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Copilot Chat",
      "description": "This application will receive your GitHub ID, your GitHub Copilot Chat session messages (not including messages sent to another application), and timestamps of provided GitHub Copilot Chat session messages. This permission must be enabled for Copilot Extensions.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-copilot-chat",
      "resourceParent": "user",
      "resource": "copilot_messages",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Copilot Editor Context",
      "description": "This application will receive bits of Editor Context (e.g. currently opened file) whenever you send it a message through Copilot Chat.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-copilot-editor-context",
      "resourceParent": "user",
      "resource": "copilot_editor_context",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Email addresses",
      "description": "Manage a user's email addresses.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-email-addresses",
      "resourceParent": "user",
      "resource": "emails",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Events",
      "description": "View events triggered by a user's activity.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-events",
      "resourceParent": "user",
      "resource": "user_events",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Followers",
      "description": "A user's followers",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-followers",
      "resourceParent": "user",
      "resource": "followers",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "GPG keys",
      "description": "View and manage a user's GPG keys.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-gpg-keys",
      "resourceParent": "user",
      "resource": "gpg_keys",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Gists",
      "description": "Create and modify a user's gists and comments.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-gists",
      "resourceParent": "user",
      "resource": "gists",
      "mandatory": false,
      "permissions": [
        "none",
        "write"
      ]
    },
    {
      "title": "Git SSH keys",
      "description": "Git SSH keys",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-git-ssh-keys",
      "resourceParent": "user",
      "resource": "keys",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Interaction limits",
      "description": "Interaction limits on repositories",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-interaction-limits",
      "resourceParent": "user",
      "resource": "interaction_limits",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Knowledge bases",
      "description": "View knowledge bases for a user.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-knowledge-bases",
      "resourceParent": "user",
      "resource": "knowledge_bases",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Plan",
      "description": "View a user's plan.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-plan",
      "resourceParent": "user",
      "resource": "plan",
      "mandatory": false,
      "permissions": [
        "none",
        "read"
      ]
    },
    {
      "title": "Profile",
      "description": "Manage a user's profile settings.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-profile",
      "resourceParent": "user",
      "resource": "profile",
      "mandatory": false,
      "permissions": [
        "none",
        "write"
      ]
    },
    {
      "title": "SSH signing keys",
      "description": "View and manage a user's SSH signing keys.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-ssh-signing-keys",
      "resourceParent": "user",
      "resource": "git_signing_ssh_public_keys",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Starring",
      "description": "List and manage repositories a user is starring.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-starring",
      "resourceParent": "user",
      "resource": "starring",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    },
    {
      "title": "Watching",
      "description": "List and change repositories a user is subscribed to.",
      "link": "https://docs.github.com/rest/overview/permissions-required-for-github-apps#user-permissions-for-watching",
      "resourceParent": "user",
      "resource": "watching",
      "mandatory": false,
      "permissions": [
        "none",
        "read",
        "write"
      ]
    }
  ],
  "events": [
    {
      "title": "Installation target",
      "description": "A GitHub App installation target is renamed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_target",
      "name": "installation_target",
      "resources": []
    },
    {
      "title": "Meta",
      "description": "When this App is deleted and the associated hook is removed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#meta",
      "name": "meta",
      "resources": []
    },
    {
      "title": "Security advisory",
      "description": "Security advisory published, updated, or withdrawn.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory",
      "name": "security_advisory",
      "resources": []
    },
    {
      "title": "Branch protection configuration",
      "description": "All branch protections disabled or enabled for a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_configuration",
      "name": "branch_protection_configuration",
      "resources": [
        "administration"
      ]
    },
    {
      "title": "Branch protection rule",
      "description": "Branch protection rule created, deleted or edited.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule",
      "name": "branch_protection_rule",
      "resources": [
        "administration"
      ]
    },
    {
      "title": "Code scanning alert",
      "description": "Code Scanning alert created, fixed in branch, or closed",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#code_scanning_alert",
      "name": "code_scanning_alert",
      "resources": [
        "security_events"
      ]
    },
    {
      "title": "Check run",
      "description": "Check run is created, requested, rerequested, or completed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#check_run",
      "name": "check_run",
      "resources": [
        "checks"
      ]
    },
    {
      "title": "Check suite",
      "description": "Check suite is requested, rerequested, or completed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#check_suite",
      "name": "check_suite",
      "resources": [
        "checks"
      ]
    },
    {
      "title": "Commit comment",
      "description": "Commit or diff commented on.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#commit_comment",
      "name": "commit_comment",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Create",
      "description": "Branch or tag created.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#create",
      "name": "create",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Custom property",
      "description": "Custom property is created, updated, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#custom_property",
      "name": "custom_property",
      "resources": [
        "organization_custom_properties"
      ]
    },
    {
      "title": "Custom property values",
      "description": "Custom property values are changed for a repository",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#custom_property_values",
      "name": "custom_property_values",
      "resources": [
        "organization_custom_properties"
      ]
    },
    {
      "title": "Discussion",
      "description": "Discussion created, edited, closed, reopened, pinned, unpinned, locked, unlocked, transferred, answered, unanswered, labeled, unlabeled, had its category changed, or was deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion",
      "name": "discussion",
      "resources": [
        "discussions"
      ]
    },
    {
      "title": "Discussion comment",
      "description": "Discussion comment created, edited, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion_comment",
      "name": "discussion_comment",
      "resources": [
        "discussions"
      ]
    },
    {
      "title": "Delete",
      "description": "Branch or tag deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#delete",
      "name": "delete",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Dependabot alert",
      "description": "Dependabot alert auto_dismissed, auto_reopened, created, dismissed, reopened, fixed, or reintroduced.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot_alert",
      "name": "dependabot_alert",
      "resources": [
        "vulnerability_alerts"
      ]
    },
    {
      "title": "Deploy key",
      "description": "A deploy key is created or deleted from a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deploy_key",
      "name": "deploy_key",
      "resources": [
        "deployments"
      ]
    },
    {
      "title": "Deployment",
      "description": "Repository was deployed or a deployment was deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment",
      "name": "deployment",
      "resources": [
        "deployments"
      ]
    },
    {
      "title": "Deployment protection rule",
      "description": "Deployment protection rule requested for an environment.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_protection_rule",
      "name": "deployment_protection_rule",
      "resources": [
        "deployments"
      ]
    },
    {
      "title": "Deployment review",
      "description": "Deployment review requested, approved or rejected",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_review",
      "name": "deployment_review",
      "resources": [
        "deployments"
      ]
    },
    {
      "title": "Deployment status",
      "description": "Deployment status updated from the API.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_status",
      "name": "deployment_status",
      "resources": [
        "deployments"
      ]
    },
    {
      "title": "Exemption request push ruleset",
      "description": "Push ruleset bypass request was created, cancelled, completed, received a response, or a response was dismissed.\n\n    Note: Delegated bypass for push rules is currently in beta and subject to change.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#exemption_request_push_ruleset",
      "name": "exemption_request_push_ruleset",
      "resources": [
        "administration"
      ]
    },
    {
      "title": "Exemption request secret scanning",
      "description": "Secret scanning push protection bypass request was created, cancelled, completed, received a response, or a response was dismissed.\n\nNote: Delegated bypass for push protection is currently in beta and subject to change.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#exemption_request_secret_scanning",
      "name": "exemption_request_secret_scanning",
      "resources": [
        "secret_scanning_alerts"
      ]
    },
    {
      "title": "Fork",
      "description": "Repository forked.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#fork",
      "name": "fork",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Gollum",
      "description": "Wiki page updated.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#gollum",
      "name": "gollum",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Issue comment",
      "description": "Issue comment created, edited, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment",
      "name": "issue_comment",
      "resources": [
        "issues"
      ]
    },
    {
      "title": "Issues",
      "description": "Issue opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, milestoned, demilestoned, locked, or unlocked.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issues",
      "name": "issues",
      "resources": [
        "issues"
      ]
    },
    {
      "title": "Installation target",
      "description": "A GitHub App installation target is renamed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_target",
      "name": "installation_target",
      "resources": []
    },
    {
      "title": "Label",
      "description": "Label created, edited or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#label",
      "name": "label",
      "resources": [
        "metadata"
      ]
    },
    {
      "title": "Milestone",
      "description": "Milestone created, closed, opened, edited, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#milestone",
      "name": "milestone",
      "resources": [
        "issues",
        "pull_requests"
      ]
    },
    {
      "title": "Member",
      "description": "Collaborator added to, removed from, or has changed permissions for a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#member",
      "name": "member",
      "resources": [
        "administration",
        "members"
      ]
    },
    {
      "title": "Membership",
      "description": "Team membership added or removed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#membership",
      "name": "membership",
      "resources": [
        "members"
      ]
    },
    {
      "title": "Merge group",
      "description": "Merge Group requested checks, or was destroyed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#merge_group",
      "name": "merge_group",
      "resources": [
        "merge_queues"
      ]
    },
    {
      "title": "Merge queue entry",
      "description": "Merge Queue entry added",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#merge_queue_entry",
      "name": "merge_queue_entry",
      "resources": [
        "pull_requests"
      ]
    },
    {
      "title": "Meta",
      "description": "When this App is deleted and the associated hook is removed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#meta",
      "name": "meta",
      "resources": []
    },
    {
      "title": "Organization",
      "description": "Organization deleted, renamed, member invited, member added, or member removed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#organization",
      "name": "organization",
      "resources": [
        "members"
      ]
    },
    {
      "title": "Page build",
      "description": "Pages site built.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#page_build",
      "name": "page_build",
      "resources": [
        "pages"
      ]
    },
    {
      "title": "Personal access token request",
      "description": "Personal access token request created, approved, denied, or cancelled.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#personal_access_token_request",
      "name": "personal_access_token_request",
      "resources": [
        "organization_personal_access_token_requests"
      ]
    },
    {
      "title": "Project",
      "description": "Project created, updated, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#project",
      "name": "project",
      "resources": [
        "organization_projects",
        "repository_projects"
      ]
    },
    {
      "title": "Project card",
      "description": "Project card created, updated, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#project_card",
      "name": "project_card",
      "resources": [
        "organization_projects",
        "repository_projects"
      ]
    },
    {
      "title": "Project column",
      "description": "Project column created, updated, moved or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#project_column",
      "name": "project_column",
      "resources": [
        "organization_projects",
        "repository_projects"
      ]
    },
    {
      "title": "Projects v2 item",
      "description": "Project item created, edited, deleted, archived, restored, converted, or reordered.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_item",
      "name": "projects_v2_item",
      "resources": [
        "organization_projects"
      ]
    },
    {
      "title": "Projects v2",
      "description": "Project created, updated, deleted, closed, or reopened.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2",
      "name": "projects_v2",
      "resources": [
        "organization_projects"
      ]
    },
    {
      "title": "Projects v2 status update",
      "description": "Project status updates created, updated, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_status_update",
      "name": "projects_v2_status_update",
      "resources": [
        "organization_projects"
      ]
    },
    {
      "title": "Public",
      "description": "Repository changes from private to public.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#public",
      "name": "public",
      "resources": [
        "metadata"
      ]
    },
    {
      "title": "Pull request",
      "description": "Pull request assigned, auto merge disabled, auto merge enabled, closed, converted to draft, demilestoned, dequeued, edited, enqueued, labeled, locked, milestoned, opened, ready for review, reopened, review request removed, review requested, synchronized, unassigned, unlabeled, or unlocked.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request",
      "name": "pull_request",
      "resources": [
        "pull_requests"
      ]
    },
    {
      "title": "Pull request review",
      "description": "Pull request review submitted, edited, or dismissed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review",
      "name": "pull_request_review",
      "resources": [
        "pull_requests"
      ]
    },
    {
      "title": "Pull request review comment",
      "description": "Pull request diff comment created, edited, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_comment",
      "name": "pull_request_review_comment",
      "resources": [
        "pull_requests"
      ]
    },
    {
      "title": "Pull request review thread",
      "description": "A pull request review thread was resolved or unresolved.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_thread",
      "name": "pull_request_review_thread",
      "resources": [
        "pull_requests"
      ]
    },
    {
      "title": "Push",
      "description": "Git push to a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push",
      "name": "push",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Registry package",
      "description": "Registry package published or updated in a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#registry_package",
      "name": "registry_package",
      "resources": [
        "packages"
      ]
    },
    {
      "title": "Release",
      "description": "Release created, edited, published, unpublished, or deleted.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#release",
      "name": "release",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Repository",
      "description": "Repository created, deleted, archived, unarchived, publicized, privatized, edited, renamed, or transferred.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository",
      "name": "repository",
      "resources": [
        "metadata"
      ]
    },
    {
      "title": "Repository dispatch",
      "description": "When a message is dispatched from a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_dispatch",
      "name": "repository_dispatch",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Repository ruleset",
      "description": "Repository ruleset created, deleted or edited.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_ruleset",
      "name": "repository_ruleset",
      "resources": [
        "administration",
        "organization_administration"
      ]
    },
    {
      "title": "Security and analysis",
      "description": "Code security features enabled or disabled for a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#security_and_analysis",
      "name": "security_and_analysis",
      "resources": [
        "administration"
      ]
    },
    {
      "title": "Secret scanning alert",
      "description": "Secrets scanning alert created, resolved, reopened, validated, or publicly leaked.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert",
      "name": "secret_scanning_alert",
      "resources": [
        "secret_scanning_alerts"
      ]
    },
    {
      "title": "Secret scanning alert location",
      "description": "Secrets scanning alert location created.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert_location",
      "name": "secret_scanning_alert_location",
      "resources": [
        "secret_scanning_alerts"
      ]
    },
    {
      "title": "Secret scanning scan",
      "description": "Secrets scanning scan completed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_scan",
      "name": "secret_scanning_scan",
      "resources": [
        "secret_scanning_alerts"
      ]
    },
    {
      "title": "Star",
      "description": "A star is created or deleted from a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#star",
      "name": "star",
      "resources": [
        "metadata"
      ]
    },
    {
      "title": "Status",
      "description": "Commit status updated from the API.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#status",
      "name": "status",
      "resources": [
        "statuses"
      ]
    },
    {
      "title": "Team",
      "description": "Team is created, deleted, edited, or added to/removed from a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#team",
      "name": "team",
      "resources": [
        "members"
      ]
    },
    {
      "title": "Team add",
      "description": "Team added or modified on a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#team_add",
      "name": "team_add",
      "resources": [
        "members"
      ]
    },
    {
      "title": "Watch",
      "description": "User stars a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#watch",
      "name": "watch",
      "resources": [
        "metadata"
      ]
    },
    {
      "title": "Workflow dispatch",
      "description": "A manual workflow run is requested.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch",
      "name": "workflow_dispatch",
      "resources": [
        "contents"
      ]
    },
    {
      "title": "Workflow job",
      "description": "Workflow job queued, waiting, in progress, or completed on a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job",
      "name": "workflow_job",
      "resources": [
        "actions",
        "contents"
      ]
    },
    {
      "title": "Workflow run",
      "description": "Workflow run requested or completed on a repository.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run",
      "name": "workflow_run",
      "resources": [
        "actions",
        "contents"
      ]
    },
    {
      "title": "Org block",
      "description": "A user has been blocked or unblocked.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#org_block",
      "name": "org_block",
      "resources": [
        "organization_administration"
      ]
    },
    {
      "title": "Repository advisory",
      "description": "Repository advisory published or reported.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_advisory",
      "name": "repository_advisory",
      "resources": [
        "repository_advisories"
      ]
    },
    {
      "title": "Sub issues",
      "description": "Sub-issues added or removed, and parent issues added or removed.",
      "link": "https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#sub_issues",
      "name": "sub_issues",
      "resources": [
        "issues"
      ]
    }
  ]
}
```

<!--

取得方法: 以下のコードを https://github.com/organizations/<org>/settings/apps/<app-slug>/permissions にてDevToolのConsoleから実行する。

(() => {
	const permissions = $$(
		"div.js-integration-permissions-selector > section > details > div > div > ul > li",
	).flatMap((e) => {
		const title = e.querySelector("strong")?.textContent.trim();
		const description = e.querySelector(".text-small")?.textContent.trim();
		const link = e.querySelector("a[href*=doc]")?.href;
		if (!title || !description) {
			console.warn("No title or description found", e, { title, description });
			return [];
		}
		const inputs = e.querySelectorAll("[name^=integration]");
		const [first] = inputs;
		if (!first) {
			console.warn("No inputs found", e);
			return [];
		}

		const resourceParent = first.getAttribute("data-resource-parent");
		const resource = first.getAttribute("data-resource");
		const mandatory = first.getAttribute("data-mandatory") === "true";
		const permissions = [...inputs].map((input) => {
			const permission = input.getAttribute("data-permission");
			return permission;
		});
		return [
			{
				title,
				description,
				link,
				resourceParent,
				resource,
				mandatory,
				permissions,
			},
		];
	});

	const events = $$(
		"div.js-integration-permissions-selector > div.clearfix.border-bottom.js-integration-hook-enabled > div > div > label",
	).map((e) => {
		const title = e.childNodes[2].textContent.trim();
		const description = e.querySelector(".text-small").textContent.trim();
		const link = e.querySelector("a[href*=doc]")?.href;
		// input = <input type="checkbox" name="integration[default_events][]" value="check_run" class="js-integration-hook-event" style="position: absolute; left: 0; top: 5px;" data-resource="checks">
		const input = e.querySelector("[name^=integration]");
		const name = input.getAttribute("value");
		const resources = input
			.getAttribute("data-resource")
			.split(" ")
			.filter(Boolean);

		return {
			title,
			description,
			link,
			name,
			resources,
		};
	});

	// Group by resourceParent
	const grouped = permissions.reduce((acc, p) => {
		if (!acc[p.resourceParent]) {
			acc[p.resourceParent] = [];
		}
		acc[p.resourceParent].push(p);
		return acc;
	}, {});

	// Print markdown table
	console.log(
		`## Permissions

${Object.entries(grouped)
	.map(
		([resourceParent, permissions]) => `### ${resourceParent}

| Name | Permissions | Description | Docs |
| --- | --- | --- | --- |
${permissions
	.map(
		(p) =>
			`| \`${p.resource}\` | ${p.permissions.map((permission) => `\`${permission}\``).join("<br>")} | ${p.description.replaceAll("\n", "<br>")} | [📚](${p.link})`,
	)
	.join("\n")}
`,
	)
	.join("\n")}

## Events

| Name | Resource | Description | Docs |
| --- | --- | --- | --- |
${events
	.map(
		(e) =>
			`| \`${e.name}\` | ${e.resources.map((resource) => `\`${resource}\``)} | ${e.description.replaceAll("\n", "<br>")} | [📚](${e.link})`,
	)
	.join("\n")}`,
	);

	const data = { permissions, events };

	console.log(JSON.stringify(data, null, 2));
})();


-->