1
0
mirror of synced 2025-12-31 15:04:15 -05:00
Files
docs/content/rest/overview/permissions-required-for-github-apps.md

75 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
/rest/reference/permissions-required-for-github-apps
fpt ghes ghae ghec
* * * *
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

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.

If you set the metadata permission to No access and select a permission that requires repository access, GitHub will override your selection and set the metadata permission back to Read-only. To set the metadata permission to No access, you must set all permissions that require repository access to No access first.

Collaborators

Commit comments

Events

Git

Organization members

SSH keys

{% ifversion fpt or ghes or ghec %}

Actions

Administration

Branches

Collaborators

Invitations

SSH keys

Teams

{% ifversion fpt or ghec %}

Traffic

{% ifversion fpt or ghec %}

Blocking users

Checks

Code scanning alerts

{% ifversion fpt or ghec %}

Codespaces

Commit statuses

Contents

Branches

Commit comments

Git

{% ifversion fpt or ghec %}

Import

Reactions

Releases

{% ifversion dependabot-alerts-rest-api %}

Dependabot alerts

{% ifversion fpt or ghec or ghes > 3.3%}

Dependabot secrets

Deployments

{% ifversion fpt or ghes or ghec %}

Email addresses

{% ifversion fpt or ghec -%}

Followers

Git SSH keys

GPG keys

{% ifversion fpt or ghec %}

Interaction limits

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

Members

{% ifversion fpt or ghec -%}

{% ifversion fpt or ghec %}

Invitations

Organization members

Team members

Teams

Organization administration

Organization events

{% ifversion ghes %}

Organization pre-receive hooks

Organization projects

{% ifversion fpt or ghec %}

Organization user blocking

Organization webhooks

Teams

Pages

GitHub Pages can only be created or unpublished by a repository owner or administrator.

Profile

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

{% ifversion ghes %}

Repository pre-receive hooks

Repository projects

Teams

Repository webhooks

{% ifversion fpt or ghec %}

Secrets

{% ifversion ghes or ghec %}

Secret scanning alerts

{% ifversion fpt or ghes or ghec %}

Self-hosted runners

Single file

Starring

Team discussions