1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/rest/reference/permissions-required-for-github-apps.md
2021-08-19 18:18:00 +00:00

71 KiB

title, intro, redirect_from, versions, topics, miniTocMaxHeadingLevel, shortTitle
title intro redirect_from versions topics miniTocMaxHeadingLevel shortTitle
Permissions required for GitHub Apps You can find the required permissions for each {% data variables.product.prodname_github_app %}-compatible endpoint.
/v3/apps/permissions
fpt ghes ghae
* * *
API
3 GitHub App permissions

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

{% data variables.product.prodname_github_apps %} 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

{% ifversion fpt or ghes %}

Permission on "actions"

Permission on "administration"

Branches

Collaborators

Invitations

Keys

Teams

{% ifversion fpt %} Traffic

{% ifversion fpt %}

Permission on "blocking"

Permission on "checks"

Permission on "contents"

Branches

Commit comments

Git

{% ifversion fpt %} Import

Reactions

{% ifversion fpt or ghes or ghae -%}

Releases

Permission on "deployments"

{% ifversion fpt or ghes %}

Permission on "emails"

{% ifversion fpt -%}

Permission on "followers"

Permission on "gpg keys"

{% ifversion fpt %}

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"

{% ifversion fpt -%}

{% ifversion fpt %} Invitations

Organization members

Team members

Teams

Permission on "organization administration"

Permission on "organization events"

Permission on "organization hooks"

Teams

{% ifversion ghes %}

Permission on "organization pre receive hooks"

Permission on "organization projects"

{% ifversion fpt %}

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"

{% ifversion ghes %}

Permission on "repository pre receive hooks"

Permission on "repository projects"

Teams

{% ifversion fpt %}

Permission on "secrets"

{% ifversion fpt or ghes > 3.0 %}

Permission on "secret scanning alerts"

Permission on "security events"

{% ifversion fpt %}

Permission on "self-hosted runners"

Permission on "single file"

Permission on "starring"

Permission on "statuses"

Permission on "team discussions"