1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Files
docs/content/rest/reference/permissions-required-for-github-apps.md

74 KiB

title, intro, redirect_from, versions, topics, miniTocMaxHeadingLevel
title intro redirect_from versions topics miniTocMaxHeadingLevel
Permissions required for GitHub Apps You can find the required permissions for each {% data variables.product.prodname_github_app %}-compatible endpoint.
/v3/apps/permissions
free-pro-team enterprise-server github-ae
* * *
API
3

About {% data variables.product.prodname_github_app %} permissions

{% data variables.product.prodname_github_app %}s are created with a set of permissions. Permissions define what resources the {% data variables.product.prodname_github_app %} can access via the API. For more information, see "Setting permissions for GitHub Apps."

Metadata permissions

GitHub Apps have the Read-only metadata permission by default. The metadata permission provides access to a collection of read-only endpoints with metadata for various resources. These endpoints do not leak sensitive private repository information.

{% data reusables.apps.metadata-permissions %}

Collaborators

Commit comments

Events

Git

Keys

Organization members

Search

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.21" %}

Permission on "actions"

Permission on "administration"

Branches

Collaborators

Invitations

Keys

Teams

{% if currentVersion == "free-pro-team@latest" %} Traffic

{% if currentVersion == "free-pro-team@latest" %}

Permission on "blocking"

Permission on "checks"

Permission on "contents"

Branches

Commit comments

Git

{% if currentVersion == "free-pro-team@latest" %} Import

Reactions

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.20" or currentVersion == "github-ae@latest" %}

Releases

Permission on "deployments"

{% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}

Permission on "emails"

{% if currentVersion == "free-pro-team@latest" %}

Permission on "followers"

Permission on "gpg keys"

{% if currentVersion == "free-pro-team@latest" %}

Permission on "interaction limits"

Permission on "issues"

Issues and pull requests are closely related. For more information, see "List issues assigned to the authenticated user." If your GitHub App has permissions on issues but not on pull requests, these endpoints will be limited to issues. Endpoints that return both issues and pull requests will be filtered. Endpoints that allow operations on both issues and pull requests will be restricted to issues.

Assignees

Events

Labels

Milestones

Reactions

Permission on "keys"

Keys

Permission on "members"

{% if currentVersion == "free-pro-team@latest" %}

{% if currentVersion == "free-pro-team@latest" %} Invitations

Organization members

Team members

Teams

Permission on "organization administration"

Permission on "organization events"

Permission on "organization hooks"

Teams

{% if enterpriseServerVersions contains currentVersion %}

Permission on "organization pre receive hooks"

Permission on "organization projects"

{% if currentVersion == "free-pro-team@latest" %}

Permission on "organization user blocking"

Permission on "pages"

Permission on "pull requests"

Pull requests and issues are closely related. If your GitHub App has permissions on pull requests but not on issues, these endpoints will be limited to pull requests. Endpoints that return both pull requests and issues will be filtered. Endpoints that allow operations on both pull requests and issues will be restricted to pull requests.

Assignees

Events

Labels

Milestones

Reactions

Requested reviewers

Reviews

Permission on "profile"

Permission on "repository hooks"

{% if enterpriseServerVersions contains currentVersion %}

Permission on "repository pre receive hooks"

Permission on "repository projects"

Teams

{% if currentVersion == "free-pro-team@latest" %}

Permission on "secrets"

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}

Permission on "secret scanning alerts"

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.21" or currentVersion == "github-ae@latest" %}

Permission on "security events"

{% if currentVersion == "free-pro-team@latest" %}

Permission on "self-hosted runners"

Permission on "single file"

Permission on "starring"

Permission on "statuses"

Permission on "team discussions"