Usa GitHub con Sokko.
Conecta GitHub y dile a Sokko qué hacer. Ejecuta las acciones que pides y reacciona a lo que ocurre, sin workflows ni código.
Funciona con más de 1.000 herramientas · Sin código
Acciones
Todo lo que Sokko puede hacer en GitHub
Cada acción de GitHub que Sokko puede ejecutar. Pídela en una frase y listo.
Abort Repository Migration
Tool to abort a repository migration that is queued or in progress. Use when you need to cancel an ongoing migration operation.
Accept a repository invitation
Accepts a PENDING repository invitation that has been issued to the authenticated user.
Add a self-hosted runner to a group for an organization
Adds a self-hosted runner to a runner group configured in an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Create a GitHub-hosted runner for an organization
Creates a GitHub-hosted runner for an organization. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
Create an organization Actions policy
Create an Actions policy for an organization. Omitting `workflow_path` targets all workflows without storing an explicit condition.
Create a repository Actions policy
Create an Actions policy for a repository. Omitting `workflow_path` targets all workflows without storing an explicit condition.
Create a self-hosted runner group for an organization
Creates a new self-hosted runner group for an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Delete a custom image from the organization
Delete a custom image from the organization. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
Delete an image version of custom image from the organization
Delete an image version of custom image from the organization. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
Delete a GitHub-hosted runner for an organization
Deletes a GitHub-hosted runner for an organization.
Delete an organization Actions policy
Delete an Actions policy for an organization.
Delete a repository Actions policy
Delete an Actions policy for a repository.
Delete a self-hosted runner group from an organization
Deletes a self-hosted runner group for an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Remove a repository from the list of repositories allowed to use self-hosted runners in an organization
Removes a repository from the list of repositories that are allowed to use self-hosted runners in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Download step logs for a workflow run job
Gets a redirect URL to download a plain text file of logs for a specific step of a workflow job. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. This endpoint is intended for selective retrieval of one step. To download complete job logs, use the [job logs endpoint](https://docs.github.com/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run). Anyone with read access to the repository can use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Download workflow run attempt logs
Gets a redirect URL to download an archive of log files for a specific workflow run attempt. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Add a repository to the list of repositories allowed to use self-hosted runners in an organization
Adds a repository to the list of repositories that are allowed to use self-hosted runners in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Get GitHub Actions cache retention limit for an organization
Gets GitHub Actions cache retention limit for an organization. All repositories under this organization may not set a higher cache retention limit. OAuth tokens and personal access tokens (classic) need the `admin:organization` scope to use this endpoint.
Get GitHub Actions cache retention limit for a repository
Gets GitHub Actions cache retention limit for a repository. This determines how long caches will be retained for, if not manually removed or evicted due to size constraints. OAuth tokens and personal access tokens (classic) need the `admin:repository` scope to use this endpoint.
Get GitHub Actions cache storage limit for an organization
Gets GitHub Actions cache storage limit for an organization. All repositories under this organization may not set a higher cache storage limit. OAuth tokens and personal access tokens (classic) need the `admin:organization` scope to use this endpoint.
Get GitHub Actions cache storage limit for a repository
Gets GitHub Actions cache storage limit for a repository. This determines the maximum size of caches that can be stored before eviction occurs. OAuth tokens and personal access tokens (classic) need the `admin:repository` scope to use this endpoint.
Get artifact and log retention settings for an organization
Gets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for an organization. Checks include check suites, check runs, and check annotations. These settings also apply to checks and commit statuses created by third-party integrations, and are not limited to data created by GitHub Actions. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Get artifact and log retention settings for a repository
Gets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for a repository. Checks include check suites, check runs, and check annotations. These settings also apply to checks and commit statuses created by third-party integrations, and are not limited to data created by GitHub Actions. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get a concurrency group for a repository
Gets a specific concurrency group for a repository, including all instances in the group's queue. Returns 404 if the group is inactive or does not exist. Optionally, pass `ahead_of_run` or `ahead_of_job` to filter the results to only the items ahead of the specified workflow run or job in the queue, plus the specified item itself (returned as the last element). This is useful for determining what is blocking a particular run or job. Returns 422 if the specified run or job is not in this concurrency group. When using `ahead_of_run`, this matches workflow-level concurrency and any reusable-workflow leases held on behalf of that run. Job-level leases within the run are not considered to block the run as a whole. Use `ahead_of_job` to match job-level concurrency and reusable-workflow leases on the job's ancestor paths. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
Get a custom image definition for GitHub Actions Hosted Runners
Get a custom image definition for GitHub Actions Hosted Runners. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
Get an image version of a custom image for GitHub Actions Hosted Runners
Get an image version of a custom image for GitHub Actions Hosted Runners. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
Get fork PR contributor approval permissions for an organization
Gets the fork PR contributor approval policy for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Get fork PR contributor approval permissions for a repository
Gets the fork PR contributor approval policy for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get limits on GitHub-hosted runners for an organization
Get the GitHub-hosted runners limits for an organization.
Get GitHub-hosted runners machine specs for an organization
Get the list of machine specs available for GitHub-hosted runners for an organization.
Get partner images for GitHub-hosted runners in an organization
Get the list of partner images available for GitHub-hosted runners for an organization.
Get platforms for GitHub-hosted runners in an organization
Get the list of platforms available for GitHub-hosted runners for an organization.
Get a GitHub-hosted runner for an organization
Gets a GitHub-hosted runner configured in an organization. OAuth app tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
List organization Actions policies
List all Actions policies for an organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get an organization Actions policy
Get a specific Actions policy for an organization.
Get private repo fork PR workflow settings for an organization
Gets the settings for whether workflows from fork pull requests can run on private repositories in an organization.
Get private repo fork PR workflow settings for a repository
Gets the settings for whether workflows from fork pull requests can run on a private repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
List repository Actions policies
List all Actions policies for a repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get a repository Actions policy
Get a specific Actions policy for a repository.
Get runner version end-of-life schedule for an organization
Gets the end-of-life schedule for a specific runner version in an organization. Returns the runner version and the dates when registration and runtime support will end. Authenticated users must have admin access to the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Get runner version end-of-life schedule for a repository
Gets the end-of-life schedule for a specific runner version in a repository. Returns the runner version and the dates when registration and runtime support will end. Authenticated users must have admin access to the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get self-hosted runners settings for an organization
Gets the settings for self-hosted runners for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Get a self-hosted runner group for an organization
Gets a specific self-hosted runner group for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
List concurrency groups for a repository
Lists the active concurrency groups for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List concurrency groups for a workflow run
Lists all concurrency groups associated with a workflow run or its jobs. The set of groups is derived from the run's configuration, so a group is included even when the run no longer has any items currently holding or waiting in it. In that case the `group_members` array will be empty. `total_count` reflects the number of groups the run participates in by configuration, not the number with active items. This differs from `GET /repos/{owner}/{repo}/actions/concurrency_groups/{group_name}`, which returns 404 when a group has no active items. That endpoint reports the live state of a group repo-wide, while this endpoint reports the groups associated with a specific run by configuration. Results are sorted by group name and support cursor-based pagination via `before` and `after`. The `after` cursor paginates forward only and does not Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List custom images for an organization
List custom images for an organization. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
List image versions of a custom image for an organization
List image versions of a custom image for an organization. OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
List GitHub-hosted runners in a group for an organization
Lists the GitHub-hosted runners in an organization group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List GitHub-hosted runners for an organization
Lists all GitHub-hosted runners configured in an organization. OAuth app tokens and personal access tokens (classic) need the `manage_runner:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List self-hosted runners in a group for an organization
Lists self-hosted runners that are in a specific organization group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List self-hosted runner groups for an organization
Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories allowed to use self-hosted runners in an organization
Lists repositories that are allowed to use self-hosted runners in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Remove a self-hosted runner from a group for an organization
Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Set GitHub Actions cache retention limit for an organization
Sets GitHub Actions cache retention limit for an organization. All repositories under this organization may not set a higher cache retention limit. OAuth tokens and personal access tokens (classic) need the `admin:organization` scope to use this endpoint.
Set GitHub Actions cache retention limit for a repository
Sets GitHub Actions cache retention limit for a repository. This determines how long caches will be retained for, if not manually removed or evicted due to size constraints. OAuth tokens and personal access tokens (classic) need the `admin:repository` scope to use this endpoint.
Set GitHub Actions cache storage limit for an organization
Sets GitHub Actions cache storage limit for an organization. All organizations and repositories under this organization may not set a higher cache storage limit. OAuth tokens and personal access tokens (classic) need the `admin:organization` scope to use this endpoint.
Set GitHub Actions cache storage limit for a repository
Sets GitHub Actions cache storage limit for a repository. This determines the maximum size of caches that can be stored before eviction occurs. OAuth tokens and personal access tokens (classic) need the `admin:repository` scope to use this endpoint.
Set artifact and log retention settings for an organization
Sets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for an organization. Checks include check suites, check runs, and check annotations. These settings also apply to checks and commit statuses created by third-party integrations, and are not limited to data created by GitHub Actions. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Set artifact and log retention settings for a repository
Sets retention settings for checks, workflow runs, commit statuses, artifacts, and logs for a repository. Checks include check suites, check runs, and check annotations. These settings also apply to checks and commit statuses created by third-party integrations, and are not limited to data created by GitHub Actions. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Set fork PR contributor approval permissions for an organization
Sets the fork PR contributor approval policy for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Set fork PR contributor approval permissions for a repository
Sets the fork PR contributor approval policy for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Set private repo fork PR workflow settings for an organization
Sets the settings for whether workflows from fork pull requests can run on private repositories in an organization.
Set private repo fork PR workflow settings for a repository
Sets the settings for whether workflows from fork pull requests can run on a private repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Set self-hosted runners settings for an organization
Sets the settings for self-hosted runners for an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Set self-hosted runners in a group for an organization
Replaces the list of self-hosted runners that are part of an organization runner group. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Set repositories allowed to use self-hosted runners in an organization
Sets repositories that are allowed to use self-hosted runners in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.
Update a GitHub-hosted runner for an organization
Updates a GitHub-hosted runner for an organization. OAuth app tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint.
Update an organization Actions policy
Update an Actions policy for an organization. Omitting `workflow_path` preserves the policy's existing workflow targeting.
Update a repository Actions policy
Update an Actions policy for a repository. Omitting `workflow_path` preserves the policy's existing workflow targeting.
Update a self-hosted runner group for an organization
Updates the `name` and `visibility` of a self-hosted runner group in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Get stargazer count
Gets the current number of users who have starred the repository. Users who previously starred the repository but later removed their star are not included.
Add app access restrictions
Adds GitHub Apps to the list of apps allowed to push to a protected branch. The branch must already have protection rules with restrictions enabled. This endpoint only works for organization repositories, not personal repositories. Apps must be installed on the repository with 'contents' write permissions.
Add assignees to an issue
Adds assignees to a GitHub issue. This action only adds users - it does not remove existing assignees. Changes are silently ignored if the authenticated user lacks push access to the repository.
Add a repository collaborator
Adds a GitHub user as a repository collaborator, or updates their permission if already a collaborator; `permission` applies to organization-owned repositories (personal ones default to 'push' and ignore this field), and an invitation may be created or permissions updated directly.
Add email for auth user
Adds one or more email addresses (which will be initially unverified) to the authenticated user's GitHub account; use this to associate new emails, noting an email verified for another account will error, while an existing email for the current user is accepted.
Add field to user project
Tool to add a custom field to a user-owned GitHub Projects V2 project. Use when you need to add fields like status, priority, or custom data to organize project items.
Add item to user project
Tool to add an issue or pull request to a user-owned GitHub project. Use when you need to add existing repository items to a project board.
Add labels to an issue
Adds labels (provided in the request body) to a repository issue; labels that do not already exist are created.
Add org runner labels
Adds new custom labels to an existing self-hosted runner for an organization; existing labels are not removed, and duplicates are not added.
Add or update team membership for a user
Adds a GitHub user to a team or updates their role (member or maintainer), inviting them to the organization if not already a member; idempotent, returning current details if no change is made.
Add or update team project permissions
The Projects (classic) endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for this team-project permission endpoint.
Add or update team repository permissions
Sets or updates a team's permission level for a repository within an organization; the team must be a member of the organization.
Add project collaborator
Adds a GitHub user as a collaborator to an organization project (classic) with a specified permission level. The Projects (classic) REST API was sunset on GitHub.com on April 1, 2025; adding collaborators requires organization-owner or project-admin access.
Add a repository to an app installation
Adds a repository to a GitHub App installation, granting the app access; requires authenticated user to have admin rights for the repository and access to the installation.
Add repository access to a self-hosted runner group in an organization
Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Add repo to org secret with selected access
Adds a repository to an existing organization-level GitHub Actions secret that is configured for 'selected' repository access.
Add selected repo to org secret
Grants an existing repository access to an existing organization-level Dependabot secret when the secret's visibility is set to 'selected'; the repository must belong to the organization, and the call succeeds without change if access already exists.
Add runner labels
Adds and appends custom labels to a self-hosted repository runner, which must be registered and active.
Add selected repository to an organization secret
Adds a repository to the access list of an organization-level GitHub Codespaces secret with selected visibility.
Add selected repository to an organization variable
Grants a repository access to an organization-level GitHub Actions variable, if that variable's visibility is set to 'selected_repositories'.
Add a selected repository to a user secret
Grants a specified repository access to an authenticated user's existing Codespaces secret, enabling Codespaces created for that repository to use the secret.
Add social accounts for the authenticated user
Adds one or more social media links (which must be valid, full URLs for platforms supported by GitHub) to the authenticated user's public GitHub profile.
Add status check contexts
Adds status check contexts to a protected branch's required status checks. This action appends new status check contexts to the existing list of required status checks for a protected branch. The branch must already have branch protection enabled with status checks configured. Note: The 'contexts' parameter is deprecated by GitHub in favor of 'checks' array. For new implementations, consider using update_status_check_protection with the 'checks' parameter instead.
Add sub-issue to an issue
Tool to add a sub-issue to a parent GitHub issue using GraphQL. Use when you need to establish a parent-child relationship between issues. Requires the 'sub_issues' GraphQL feature to be enabled.
Add team access restrictions
Adds teams to the list of teams with push access to a protected branch. This action grants additional teams push access to a protected branch. Unlike 'Set team access restrictions' (PUT), this action adds to the existing list rather than replacing it entirely. Prerequisites: - The repository must be owned by an organization (not a personal account) - The branch must have protection rules enabled - The branch protection must have restrictions configured - The teams must exist in the organization and have repository access
Add users to codespaces access for an organization
Adds organization members to the list of users granted Codespaces access billed to the organization. IMPORTANT: This endpoint requires the organization's Codespaces billing access to be set to 'selected_members' mode. If not already configured, use the GITHUB_MANAGE_ACCESS_CONTROL_FOR_ORGANIZATION_CODESPACES action first to set visibility to 'selected_members'.
Add user access restrictions
Adds users to the list of people allowed to push to a protected branch in an organization repository. Important notes: - This action only works on organization-owned repositories (not personal repos) - The branch must already have protection rules with restrictions enabled - Users must have write access to the repository to be added - The combined total of users, apps, and teams is limited to 100 items
Add selected repository to an organization variable
Adds a repository to an organization agent variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Create an organization variable
Creates an organization agent variable that you can reference in a GitHub Actions workflow. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Create a repository variable
Creates a repository variable that you can reference in a GitHub Actions workflow. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Delete an organization variable
Deletes an organization agent variable using the variable name. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Delete a repository variable
Deletes a repository variable using the variable name. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get an organization public key
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
Get an organization secret
Gets a single organization secret without revealing its encrypted value. The authenticated user must have collaborator access to a repository to create, update, or read secrets. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get an organization variable
Gets a specific agent variable in an organization. The authenticated user must have collaborator access to a repository to create, update, or read variables. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get a repository public key
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get a repository secret
Gets a single repository secret without revealing its encrypted value. The authenticated user must have collaborator access to the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get a repository variable
Gets a specific variable in a repository. The authenticated user must have collaborator access to the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
List organization secrets
Lists all secrets available in an organization without revealing their encrypted values. Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization variables
Lists all agent variables available in an organization. Returned variables include their values. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository organization secrets
Lists all organization secrets shared with a repository without revealing their encrypted values. Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository organization variables
Lists all organization variables shared with a repository. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository secrets
Lists all secrets available in a repository without revealing their encrypted values. Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository variables
Lists all repository variables. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List selected repositories for an organization secret
Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. Authenticated users must have collaborator access to a repository to create, update, or read secrets. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List selected repositories for an organization variable
Lists all repositories that can access an organization agent variable that is available to selected repositories. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Remove selected repository from an organization variable
Removes a repository from an organization agent variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
Set selected repositories for an organization variable
Replaces all repositories for an organization agent variable that is available to selected repositories. Organization variables that are available to selected repositories have their `visibility` field set to `selected`. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
Update an organization variable
Updates an organization agent variable that you can reference in a GitHub Actions workflow. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
Update a repository variable
Updates a repository variable that you can reference in a GitHub Actions workflow. Authenticated users must have collaborator access to a repository to create, update, or read variables. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Create an automation for a repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Creates a new automation in a repository. Personal automations are private to their creator. Shared automations are visible to anyone with read access to the repository and manageable by anyone with write access to the repository. GitHub App installation access tokens can create shared automations by setting `type` to `shared`. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (write). Personal automations require a user token. For installation tokens, `created_by` identifies the App's bot account. To call this endpoint, you must have write access to the repository and the "Allow automations" setting must be enabled for the repository. To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "Create an automation for a repository"** This endpoint works with the
Run an automation
> [!NOTE] > This endpoint is in public preview and is subject to change. Runs an automation in a repository. Set `event` to `manual` and optionally include `context` of up to 10,000 characters, which will be injected into the automation's prompt. The repository must have the "Allow automations" setting enabled, and the automation must be a personal automation belonging to you or a shared automation. GitHub App installation access tokens can run shared automations. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (write). Personal automations require a user token. A successful response accepts the run request and includes a preallocated `task_id`. User tokens can fetch it with the "Get a task by repo" Agent tasks API. GitHub App installation tokens can list tasks for the automation in the repository and match the returned `task_id`. The The selected automation or prompt can modify or delete repository content.
Delete an automation
> [!NOTE] > This endpoint is in public preview and is subject to change. Deletes an automation in a repository. The automation must be a personal automation belonging to you or a shared automation. Data dedicated to the automation is also deleted when present and may remain recoverable for a limited period according to the configured retention policy. GitHub App installation access tokens can delete shared automations. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (write). Personal automations require a user token. To call this endpoint, you must have write access to the repository and the "Allow automations" setting must be enabled for the repository. To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "Delete an automation"** This endpoint works with the following fine-grained token types: * [GitHub App user access
Update an automation
> [!NOTE] > This endpoint is in public preview and is subject to change. Updates an existing automation in a repository. The automation must be a personal automation belonging to you or a shared automation. Omitted fields are left unchanged. The automation's `type` is immutable. GitHub App installation access tokens can update shared automations. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (write). Personal automations require a user token. To call this endpoint, you must have write access to the repository and the "Allow automations" setting must be enabled for the repository. To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "Update an automation"** This endpoint works with the following fine-grained token types: * [GitHub App user access
Get an automation revision
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a specific revision of an automation, including its configuration after that change. Access follows the automation's own ownership rules: a user-owned automation's history is readable only by its creator, and a repository-owned automation's history follows repository read access. History remains readable after the automation is deleted. A revision ID belonging to a different automation returns `404`. **Fine-grained access tokens for "Get an automation revision"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) The
Get an automation
> [!NOTE] > This endpoint is in public preview and is subject to change. Fetches a repository automation by ID. The automation must be a personal automation belonging to you or a shared automation. Shared automations are visible to anyone with read access to the repository. The `created_by` field identifies the creator and is distinct from the automation's `type`. GitHub App installation access tokens can access shared automations. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (read). Personal automations require a user token. To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "Get an automation"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) *
List automations for user
> [!NOTE] > This endpoint is in public preview and is subject to change. Lists automations created by the authenticated user across repositories they can read. This includes both personal and shared automations created by the caller, but excludes shared automations created by another user. Use the repository-scoped list operation for those automations. The `type` filter only narrows this creator-scoped collection. To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "List automations for user"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List revisions for an automation
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a list of revisions for an automation, ordered from newest to oldest. Access follows the automation's own ownership rules: a user-owned automation's history is readable only by its creator, and a repository-owned automation's history follows repository read access. History remains readable after the automation is deleted. Follow the opaque cursor in the `rel="next"` link from the `Link` header to continue when more revisions are available. **Fine-grained access tokens for "List revisions for an automation"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access `per_page` controls the number of items returned per page, with a maximum of 100; use GitHub's response pagination links to continue.
List automations for a repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a paginated list of automations for a repository, including shared automations and personal automations created by the caller. `total_count` is the number of caller-visible automations matching the supplied filters across all pages. Use the `type` field to distinguish personal and shared automations. GitHub App installation access tokens can list shared automations. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (read). Personal automations require a user token. To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "List automations for a repository"** This endpoint works with the following fine-grained token types: * Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List tasks for an automation in a repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a paginated list of tasks created by an automation in the specified repository. The automation must belong to that exact repository. User-owned automation history is visible only to the automation's creator. Repository-owned automation history is visible to callers with read access to repository automations. Deleted and unlisted tasks are excluded. Tasks produced by private-session agents are excluded unless the caller created the task, is a task collaborator, or the task is shared. A missing repository, an inaccessible repository, or an automation that does not belong to the specified repository returns `404` without revealing which condition occurred. GitHub App installation access tokens can list tasks for shared automations. The installation must belong to the Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List available automation tools for a repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Lists available tools for automations in a repository, including both GitHub-provided tools and tools provided by custom MCP servers. GitHub-provided tools are returned in named groups, with a name and description provided for each tool. MCP entries describe configured tool selection, not live discovery or runtime availability. An explicit allowlist is returned in `tools`, with each `id` in `<server-name>/<tool-name>` format, for example `sentry/list_issues`. An allowlist of `["*"]` is returned as `supports_wildcard: true` with an empty `tools` array. Server URLs, authentication headers, environment variables, and credentials are never returned. For MCP tools, a list of configured MCP servers is provided, along with the tools allowlisted for each server. Where `supports_wildcard` is true, any tool that exists on the server can be used. GitHub App installation access tokens can list available automation tools.
List available automation triggers for a repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Lists available triggers for automations in a repository. Each available trigger includes a title and description that can be presented in user interfaces, plus a machine-readable schema of filters supported by the trigger. GitHub App installation access tokens can list available automation triggers. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (read). To call this endpoint, OAuth app tokens and personal access tokens (classic) need the `repo` scope. **Fine-grained access tokens for "List available automation triggers for a repository"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [GitHub App installation access
Disable Agent Merge for a pull request
Disables Agent Merge for a pull request. You must have write access to the repository. Disabling does not require enrollment eligibility: your Copilot subscription, coding-agent and Automations policies, the Agent Merge execution flag, pull request state, stack membership, and repository archive state do not prevent cleanup. Authentication, token repository selection, and "Agent tasks" write permission remain required. OAuth app tokens and personal access tokens (classic) need the repo scope for private or internal repositories, or the public_repo scope for public repositories.
Get Agent Merge configuration for a pull request
Gets the Agent Merge configuration for a pull request. You must have write access to the repository. OAuth app tokens and personal access tokens (classic) need the repo scope for private or internal repositories, or the public_repo scope for public repositories.
Update Agent Merge configuration for a pull request
Updates the Agent Merge configuration for a pull request, enabling Agent Merge or changing the allowed actions that Copilot is allowed to take on the pull request. If Agent Merge is currently enabled for the pull request, only the user who most recently enabled it may change its allowed actions. If enrollment eligibility cannot be determined, the operation returns `503`. This endpoint is only available to users with a Copilot subscription, excluding Copilot Free users. You must have write access to the repository, the pull request must not be from a fork or part of a stack, and the repository must have the "Allow automations" setting enabled. OAuth app tokens and personal access tokens (classic) need the repo scope for private or internal repositories, or the public_repo scope for public repositories.
Start a task
> [!NOTE] > This endpoint is in public preview and is subject to change. Starts a new Copilot cloud agent task for a repository. This endpoint is only available to users with a Copilot Business or Copilot Enterprise subscription. **Fine-grained access tokens for "Start a task"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) The fine-grained token must have the following permission set: * "Agent tasks" repository permissions (read and write) GitHub App installation access tokens are not supported for this endpoint. The selected automation or prompt can modify or delete repository content.
Get a task by ID
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a task by ID with its associated sessions **Fine-grained access tokens for "Get a task by ID"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) The fine-grained token must have the following permission set: * "Agent tasks" repository permissions (read) GitHub App installation access tokens are not supported for this endpoint.
Get a task by repo
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a task by ID scoped to an owner/repo path **Fine-grained access tokens for "Get a task by repo"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) The fine-grained token must have the following permission set: * "Agent tasks" repository permissions (read) GitHub App installation access tokens are not supported for this endpoint.
List tasks
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a list of tasks for the authenticated user **Fine-grained access tokens for "List tasks"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) The fine-grained token must have the following permission set: * "Agent tasks" repository permissions (read) GitHub App installation access tokens are not supported for this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List tasks for repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Returns a list of tasks for a specific repository **Fine-grained access tokens for "List tasks for repository"** This endpoint works with the following fine-grained token types: * [GitHub App user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) * [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) The fine-grained token must have the following permission set: * "Agent tasks" repository permissions (read) GitHub App installation access tokens are not supported for this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get route stats by actor
Get API request count statistics for an actor broken down by route within a specified time frame. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get subject stats
Get API request statistics for all subjects within an organization within a specified time frame. Subjects can be users or GitHub Apps. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get summary stats
Get overall statistics of API requests made within an organization by all users and apps within a specified time frame. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Get summary stats by actor
Get overall statistics of API requests within the organization made by a specific actor. Actors can be GitHub App installations, OAuth apps or other tokens on behalf of a user. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Get summary stats by user
Get overall statistics of API requests within the organization for a user. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Get time stats
Get the number of API requests and rate-limited requests made within an organization over a specified time period. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Get time stats by actor
Get the number of API requests and rate-limited requests made within an organization by a specific actor within a specified time period. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Get time stats by user
Get the number of API requests and rate-limited requests made within an organization by a specific user over a specified time period. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Get user stats
Get API usage statistics within an organization for a user broken down by the type of access. Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get GitHub API root
Retrieves a map of all top-level GitHub REST API resource URLs and their templates.
Approve a workflow run for a fork pull request
Approves a workflow run from a forked repository's pull request; call this when such a run requires manual approval due to workflow configuration.
Assign an organization role to a team
Assigns an existing organization-level role (identified by `role_id`) to a team (identified by `team_slug`) within a GitHub organization (`org`), provided the organization, team, and role already exist.
Assign an organization role to a user
Assigns a specific organization role to a user who is a member or an outside collaborator in a GitHub organization, using a valid role ID.
List Docker Migration Conflicting Packages
List Docker packages with migration conflicts for the authenticated user. This endpoint lists all Docker packages owned by the authenticated user that encountered namespace conflicts during the Docker-to-GitHub Container Registry (GHCR) migration. Conflicts occur when a package with the same name exists in both the legacy Docker registry and GHCR. IMPORTANT: The Docker registry for GitHub Packages was deprecated on Feb 24, 2025. This endpoint may return a 400 error with message 'Package migration for docker is no longer supported' as the migration period has ended. In this case, the action returns an informative response instead of failing. Use case: Identifying packages that require manual migration to GHCR. Required scope: read:packages (for OAuth and personal access tokens).
Create a budget for an organization
Creates a new budget for an organization. The authenticated user must be an organization admin or billing manager.
Delete a budget for an organization
Deletes a budget by ID for an organization. The authenticated user must be an organization admin or billing manager.
Get billing AI credit usage report for an organization
Gets a report of AI credit usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. **Note:** Only data from the past 24 months is accessible via this endpoint.
Get billing AI credit usage report for a user
Gets a report of AI credit usage for a user. **Note:** Only data from the past 24 months is accessible via this endpoint.
Get all budgets for an organization
Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager. Each page returns up to 100 budgets. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get a budget by ID for an organization
Gets a budget by ID. The authenticated user must be an organization admin or billing manager.
Get billing premium request usage report for an organization
Gets a report of premium request usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. **Note:** Only data from the past 24 months is accessible via this endpoint.
Get billing usage report for an organization
Gets a report of the total usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. **Note:** This endpoint is only available to organizations with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform](https://docs.github.com/billing/using-the-new-billing-platform)."
Get billing usage summary for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Gets a summary report of usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. **Note:** Only data from the past 24 months is accessible via this endpoint.
Update a budget for an organization
Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.
Block a user
Blocks an existing individual GitHub user (not an organization or your own account), preventing them from interacting with your account and repositories.
Block a user from an organization
Blocks a GitHub user from an organization, preventing contributions, collaboration, and forking of its repositories; requires admin or 'Blocking users' organization permission. Certain permission and validation errors return a response with success=false.
Create a campaign for an organization
Create a campaign for an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. Fine-grained tokens must have the "Code scanning alerts" repository permissions (read) on all repositories included in the campaign.
Delete a campaign for an organization
Deletes a campaign in an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
Get a campaign for an organization
Gets a campaign for an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
List campaigns for an organization
Lists campaigns in an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Update a campaign
Updates a campaign in an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
Cancel a GitHub Pages deployment
Cancels an existing, ongoing or queued GitHub Pages deployment for a repository using its `pages_deployment_id`.
Cancel sponsorship
Tool to cancel an active GitHub sponsorship using GraphQL. Use when you need to terminate a sponsorship relationship between a sponsor and a sponsorable entity. Either sponsor ID/login and sponsorable ID/login must be provided.
Cancel a workflow run
Requests cancellation of a workflow run in a GitHub repository if it is in a cancellable state, such as in progress or queued. Returns an acceptance message when GitHub accepts the request; cancellation may take time to complete.
Check if following user
Check if the authenticated user is following a specified person on GitHub. Use this action when you need to verify whether the currently authenticated user follows another GitHub user. The action returns a boolean status and descriptive message.
Check if a gist is starred
Checks whether the authenticated user has starred a GitHub gist. Returns true for HTTP 204 or 304 and false for HTTP 404; an unexpected successful status also yields false with a status message.
Check if pull request merged
Checks if a specified GitHub pull request has been merged, indicated by a 204 HTTP status (merged) or 404 (not merged/found).
Check if pull request merged
Checks whether a GitHub pull request has been merged. Returns merged=True for HTTP 204 and merged=False for HTTP 404; a 404 can also mean the pull request does not exist.
Check if repo starred by auth user
Checks whether the authenticated user has starred a specified GitHub repository. This action is deprecated.
Check if a user can be assigned
Verifies if a GitHub user can be assigned to issues in a repository; assignability is confirmed by an HTTP 204 (No Content) response, resulting in an empty 'data' field in the response.
Check if a user can be assigned to an issue
Checks if a specified GitHub user can be assigned to a given issue within a repository.
Check if a user follows another user
Checks if a GitHub user `username` follows `target_user`; returns a 204 HTTP status if true, 404 if not or if users are invalid.
Check if a user is blocked by the authenticated user
Checks whether a specified GitHub user is blocked by the authenticated user. Both a blocked response and a 404 response are returned as an empty result, so the result does not distinguish those cases.
Check if a user is blocked by an organization
Checks whether a GitHub user is blocked by an organization; requires 'Blocking users' organization permission (read access). Returns is_blocked=True for HTTP 204, False for HTTP 404, and a null status with an error for HTTP 403.
Check if a user is a repository collaborator
Checks whether a user is a collaborator on a GitHub repository, returning a boolean for HTTP 204 or 404; a 404 can also mean the repository or user does not exist. A 403 returns an indeterminate result with a permission error.
Check organization membership for user
Check whether a user has membership visible to the connected account. GitHub documents 404 as a negative result only when the requester is an organization member. It can otherwise indicate hidden membership, insufficient access, or a missing organization or user.
Check if person is followed by authenticated user
Checks if the authenticated GitHub user follows a target GitHub user. Returns a structured response with is_following=True when following (HTTP 204), or is_following=False when not following (HTTP 404).
Check private vulnerability reporting status
Checks if private vulnerability reporting is enabled for the specified repository.
Check public organization membership
Check whether a user is a public member of a GitHub organization. A 404 is reported as not a public member, but may also indicate that the user or organization does not exist.
Check if repository is starred
Check if a repository is starred by the authenticated user. Use this action when you need to verify whether the authenticated user has starred a specific repository. This is useful for confirming star status before performing star/unstar operations or displaying repository status.
Check team permissions for a project
The Projects (classic) endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for checking a team's project permission.
Check team permissions for a repository
Checks a team's permissions for a specific repository within an organization, including permissions inherited from parent teams.
Check a token
Checks if a GitHub App or OAuth access_token is valid for the specified client_id and retrieves its details, typically to verify its active status and grants. NOTE: This endpoint requires Basic Authentication using the OAuth App's client_id as username and client_secret as password. The access_token parameter must be an OAuth token issued by the specified OAuth App.
Clear Project V2 Item Field Value
Tool to clear the value of a field for an item in a GitHub Project V2. Use when you need to remove or reset a field value (text, number, date, assignees, labels, single-select, iteration, or milestone fields).
Clear repository cache by key
Deletes GitHub Actions caches from a repository matching a specific `key` and an optional Git `ref`, used to manage storage or clear outdated/corrupted caches; the action succeeds even if no matching caches are found to delete.
Clear self-hosted runner org labels
Removes all custom labels from a self-hosted runner for an organization; default labels (e.g., 'self-hosted', 'linux', 'x64') will remain.
Close an issue
Close a GitHub issue by setting its state to closed. Use this action when you need to mark an issue as resolved or no longer relevant. Optionally specify a reason for closing (completed or not_planned) to provide context.
Close a pull request
Closes an open pull request without merging it. The pull request state is set to "closed" and it can be reopened later if needed. Use this action when you want to reject or abandon a pull request without merging the proposed changes into the base branch. You must have write access to the repository to close pull requests.
Get a code quality finding
Gets a single code quality finding. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Get a code quality setup configuration
Gets a code quality setup configuration. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
List code quality findings for a repository
Lists code quality findings for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
Update a code quality setup configuration
Updates a code quality setup configuration. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Commit an autofix for a code scanning alert
Commits an autofix for a code scanning alert from the repository's default branch. If an autofix is committed as a result of this request, then this endpoint will return a 201 Created response. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Create an autofix for a code scanning alert
Creates an autofix for a code scanning alert from the repository's default branch. If a new autofix is to be created as a result of this request or is currently being generated, then this endpoint will return a 202 Accepted response. If an autofix already exists for a given alert, then this endpoint will return a 200 OK response. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Create a CodeQL variant analysis
Creates a new CodeQL variant analysis, which will run a CodeQL query against one or more repositories. Get started by learning more about [running CodeQL queries at scale with Multi-Repository Variant Analysis](https://docs.github.com/code-security/codeql-for-vs-code/getting-started-with-codeql-for-vs-code/running-codeql-queries-at-scale-with-multi-repository-variant-analysis). Use the `owner` and `repo` parameters in the URL to specify the controller repository that will be used for running GitHub Actions workflows and storing the results of the CodeQL variant analysis. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Delete a CodeQL database
Deletes a CodeQL database for a language in a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Get AI Scan enablement for a repository
Gets whether AI Scan is enabled for a repository. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Get the AI Scan setting for an organization
Gets the AI Scan setting stored on an organization. The response reports the value stored on the organization. Organization respects enterprise policy. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:org`, `repo`, or `write:org` scope to use this endpoint. Organization owners can use `admin:org` or `repo`; security managers need `write:org`.
Get the status of an autofix for a code scanning alert
Gets the status and description of an autofix for a code scanning alert on the repository's default branch. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Get the summary of a CodeQL variant analysis
Gets the summary of a CodeQL variant analysis. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Get the analysis status of a repository in a CodeQL variant analysis
Gets the analysis status of a repository in a CodeQL variant analysis. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Update AI Scan enablement for a repository
Updates whether AI Scan is enabled for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
Update the AI Scan setting for an organization
Updates the AI Scan setting stored on an organization. The organization respects the enterprise policy, so enabling is rejected when the enterprise disallows AI Scan. OAuth app tokens and personal access tokens (classic) need the `admin:org`, `repo`, or `write:org` scope to use this endpoint. Organization owners can use `admin:org` or `repo`; security managers need `write:org`.
Attach a configuration to repositories
Attach a code security configuration to a set of repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration. If insufficient GHAS licenses are available to attach the configuration to a repository, only free features will be enabled. The authenticated user must be an administrator or security manager for the organization to use this endpoint. Directly applying an enterprise-enforced configuration also requires permission to manage the enterprise's code security settings. Without it, the request returns `403` and no repositories change. When applying a different configuration, repositories with active enterprise-enforced attachments are skipped unless the authenticated user can manage the enterprise's code security settings; the remaining repositories are updated. The request still returns `202` if every repository is skipped. OAuth app tokens and classic PATs require the `write:org` scope. Directly
Create a code security configuration
Creates a code security configuration in an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
Delete a code security configuration
Deletes the desired code security configuration from an organization. Repositories attached to the configuration will retain their settings but will no longer be associated with the configuration. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
Detach configurations from repositories
Detach code security configuration(s) from a set of repositories. Repositories will retain their settings but will no longer be associated with the configuration. The authenticated user must be an administrator or security manager for the organization to use this endpoint. Repositories with active enterprise-enforced attachments are skipped unless the authenticated user can manage the enterprise's code security settings; the rest are detached. Inactive enterprise-enforced attachments, such as failed attachments, are detached. The request still returns `204` if every repository is skipped. OAuth app tokens and classic PATs require the `write:org` scope. Managing enterprise-enforced configurations also requires `admin:enterprise` and is not supported by fine-grained PATs or GitHub App access tokens.
Get a code security configuration
Gets a code security configuration available in an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
Get code security configurations for an organization
Lists all code security configurations available in an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
Get the code security configuration associated with a repository
Get the code security configuration that manages a repository's code security settings. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get default code security configurations
Lists the default code security configurations for an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
Get repositories associated with a code security configuration
Lists the repositories associated with a code security configuration in an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
Set a code security configuration as a default for an organization
Sets a code security configuration as a default to be applied to new repositories in your organization. This configuration will be applied to the matching repository type (all, none, public, private and internal) by default when they are created. The authenticated user must be an administrator or security manager for the organization to use this endpoint. Setting an enterprise-enforced configuration as the default also requires permission to manage the enterprise's code security settings. A default set with this endpoint is an organization default, even if the configuration is owned or enforced by the enterprise. An enterprise-enforced configuration set as an enterprise-level default for the same repository visibility takes precedence. OAuth app tokens and classic PATs require the `write:org` scope; setting an enterprise-enforced configuration as the default also requires `admin:enterprise`. Fine-grained PATs and GitHub App access tokens cannot perform that action.
Update a code security configuration
Updates a code security configuration in an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
Commit Multiple Files
Creates, updates, or deletes repository files in a commit, with retries for non-fast-forward branch updates; a new branch in a nonempty repository requires a base branch. Empty repository initialization creates separate commits per file and may also write an initialization file to the default branch.
Compare two commits
Compares two commit points (commits, branches, tags, or SHAs) within a repository or across forks, using `BASE...HEAD` or `OWNER:REF...OWNER:REF` format for the `basehead` parameter.
Configure JIT runner for an org
Generates a JIT configuration for a GitHub organization's new self-hosted runner to run a single job then unregister; requires admin:org scope and the runner_group_id must exist in the organization.
Configure OIDC subject claim template
Sets or updates the OIDC subject claim customization template for an existing GitHub organization by specifying which claims (e.g., 'repo', 'actor') form the OIDC token's subject (`sub`). This action customizes which claim keys are included in the OIDC subject claim for the specified organization. It allows for fine-tuning the content of the subject claim based on organizational needs.
Convert an organization member to outside collaborator
Converts a GitHub organization member to an outside collaborator with access restricted to explicitly granted repositories. The conversion can be requested asynchronously; queued and completed responses are both returned as empty results.
Convert Pull Request to Draft
Converts an open pull request to draft status, indicating it is not ready for review. Use this action when you need to mark a PR as work-in-progress after it has been opened. Draft pull requests cannot be merged until they are marked as ready for review. This action is useful when additional work is needed before the PR can be reviewed or merged.
Add teams to the Copilot subscription for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Purchases a GitHub Copilot seat for all users within each specified team. The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your
Add users to the Copilot subscription for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Purchases a GitHub Copilot seat for each user specified. The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)." Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your
Remove teams from the Copilot subscription for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Sets seats for all members of each team specified to "pending cancellation". This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team. For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." Only organization owners can cancel Copilot seats for their organization members. The response contains the total number of seats set to "pending cancellation". OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
Remove users from the Copilot subscription for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Sets seats for all users specified to "pending cancellation". This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership. For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)." Only organization owners can cancel Copilot seats for their organization members. The response contains the total number of seats set to "pending cancellation". OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
Get Copilot content exclusion rules for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Gets information about an organization's Copilot content exclusion path rules. To configure these settings, go to the organization's settings on GitHub. For more information, see "[Excluding content from GitHub Copilot](https://docs.github.com/copilot/managing-copilot/configuring-and-auditing-content-exclusion/excluding-content-from-github-copilot#configuring-content-exclusions-for-your-organization)." Organization owners can view details about Copilot content exclusion rules for the organization. OAuth app tokens and personal access tokens (classic) need either the `copilot` or `read:org` scopes to use this endpoint. > [!CAUTION] > * At this time, the API does not support comments. This endpoint will not return any comments in the existing rules. > * At this time, the API does not support duplicate keys. If your content exclusion configuration contains duplicate keys, the API will return only the last
Delete Copilot customizations for a team
Deletes the GitHub-managed Copilot customization document for an organization team. Enterprise teams are not supported. Returns `204` with no response body, including when the team has no customization document. The authenticated user must be an organization owner or a team maintainer. For an organization team managed by an enterprise team or SCIM-backed identity provider group, the authenticated user must be an organization owner. Token permissions do not grant access to teams the authenticated user cannot administer. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Fine-grained personal access tokens and GitHub App user access tokens need the organization's "Copilot agent settings" permission with write access. GitHub App installation access tokens are not supported. A concurrent edit can return `409`.
Disable a repository for Copilot cloud agent in an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Removes a repository from the list of selected repositories enabled for Copilot cloud agent in an organization. This method can only be called when the cloud agent repository policy is set to `selected`. OAuth app tokens and personal access tokens (classic) need the `admin:org` scopes to use this endpoint.
Enable a repository for Copilot cloud agent in an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Adds a repository to the list of selected repositories enabled for Copilot cloud agent in an organization. This method can only be called when the cloud agent repository policy is set to `selected`. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Get Copilot cloud agent configuration for a repository
> [!NOTE] > This endpoint is in public preview and is subject to change. Gets the Copilot cloud agent configuration for a repository, including MCP server configuration, enabled review tools, Actions workflow approval settings, and firewall configuration. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get Copilot cloud agent permissions for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Gets information about which repositories in an organization have been enabled or disabled for the Copilot cloud agent. Organization owners and members with a custom organization role that includes either the `View organization Copilot cloud agent settings` or `Manage organization Copilot cloud agent settings` permission can use this endpoint to view whether Copilot cloud agent is enabled for all repositories, selected repositories, or no repositories owned by the organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
Get Copilot seat information and settings for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Gets information about an organization's Copilot subscription, including seat breakdown and feature policies. To configure these settings, go to your organization's settings on GitHub.com. For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)." Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
Get Copilot seat assignment details for a user
> [!NOTE] > This endpoint is in public preview and is subject to change. Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot. The seat object contains information about the user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data). Only organization owners can view Copilot seat assignment details for members of their organization. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint.
Get Copilot customizations for a team
Gets the GitHub-managed Copilot customization document for an organization team. Returns `404` if the team has no customization document. Enterprise teams are not supported. The authenticated user must be an organization owner or a team maintainer. For an organization team managed by an enterprise team or SCIM-backed identity provider group, the authenticated user must be an organization owner. Token permissions do not grant access to teams the authenticated user cannot administer. OAuth app tokens and personal access tokens (classic) need the `admin:org` or `read:org` scope to use this endpoint. Fine-grained personal access tokens and GitHub App user access tokens need the organization's "Copilot agent settings" permission with read access. GitHub App installation access tokens are not supported. Returns `422` if the stored customization document cannot be read.
Get the Copilot code review policy for an organization
Gets the configured and effective Copilot code review policy for an organization, whether organization administrators can edit it, and whether the enterprise or the organization manages it. This does not return review effort, repository settings, preview approval controls, or automatic-review rulesets. Organization owners can use this endpoint. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scope. GitHub App tokens and fine-grained personal access tokens are not supported.
Get the Copilot code review runner configuration for an organization
Gets the runner configuration that Copilot code review uses for an organization. Until the organization saves a Copilot code review runner configuration, the response reports the values inherited from the organization's Copilot coding agent runner configuration, with `configured_by` set to `coding_agent`. Organization owners can use this endpoint. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scope. GitHub App tokens and fine-grained personal access tokens are not supported.
Get Copilot code review settings for an organization
Gets the Copilot code review settings for an organization. Currently this is the default review effort that repositories in the organization use when they do not choose their own. For each setting, the response includes the configured value, the effective value, the default inherited when nothing is configured, whether organization administrators can edit it, and whether the enterprise or the organization manages it. Organization owners can use this endpoint. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scope. GitHub App tokens and fine-grained personal access tokens are not supported.
Get Copilot code review settings for a repository
Gets the Copilot code review settings for a repository. These settings tune how Copilot code review reviews pull requests in the repository. They do not enable Copilot code review. `review_effort.configured` is `null` when the repository inherits its review effort from the organization, the enterprise, or GitHub's default. `review_effort.effective` is the review effort that reviews use when the requester and the pull request do not choose one. Only review efforts available for the repository are reported; when reviews would use an unavailable effort, `review_effort.effective` is the review effort they would use without it. Repository administrators can use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
List repositories enabled for Copilot cloud agent in an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Lists the selected repositories that are enabled for Copilot cloud agent in an organization. Organization owners and members with a custom organization role that includes either the `View organization Copilot cloud agent settings` or `Manage organization Copilot cloud agent settings` permission can use this endpoint when the coding agent repository policy is set to `selected` to see which repositories have been enabled. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List all Copilot seat assignments for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Lists all Copilot seats for which an organization with a Copilot Business or Copilot Enterprise subscription is currently being billed. Only organization owners can view assigned seats. Each seat object contains information about the assigned user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data, see [Metrics data properties for GitHub Copilot](https://docs.github.com/copilot/reference/metrics-data). OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get Copilot organization usage metrics for a specific day
Use this endpoint to retrieve download links for the Copilot organization usage metrics report for a specific day. The report provides comprehensive usage data for Copilot features across the organization. The report contains aggregated metrics for the specified day, including usage statistics for various Copilot features, user engagement data, and feature adoption metrics. Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Organization owners and authorized users with fine-grained "View Organization Copilot Metrics" permission can retrieve Copilot metrics reports for the organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. For more information about organization metrics attribution, see [How
Get Copilot organization repository report for a specific day
Use this endpoint to retrieve download links for the Copilot organization repository report for a specific day. The report provides per-repository pull request metrics for Copilot across the organization, with one entry per repository. The report contains repository-level pull request activity for the specified day, including the Copilot Coding Agent (CCA) and Copilot Code Review (CCR) breakdowns. Only repositories that had activity on the specified day are included. Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Organization owners and authorized users with fine-grained "View Organization Copilot Metrics" permission can retrieve Copilot metrics reports for the organization. OAuth app tokens and personal access tokens (classic) need the `read:org`
Get Copilot organization usage metrics
Use this endpoint to retrieve download links for the latest 28-day organization Copilot usage metrics report. The report provides comprehensive usage data for Copilot features across the organization. The report contains aggregated metrics for the previous 28 days, including usage statistics for various Copilot features, user engagement data, and feature adoption metrics. Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date range covered by the report. The report covers a complete 28-day period ending on the most recent day for which data has been processed. Organization owners and authorized users with fine-grained "View Organization Copilot Metrics" permission can retrieve Copilot metrics reports for the organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. For more
Get Copilot organization users usage metrics for a specific day
Use this endpoint to retrieve download links for the Copilot organization user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the organization. The report contains user-specific metrics for the specified day, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement. Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Organization owners and authorized users with fine-grained "View Organization Copilot Metrics" permission can retrieve Copilot
Get Copilot organization users usage metrics
Use this endpoint to retrieve download links for the latest 28-day organization users Copilot usage metrics report. The report provides detailed user-level usage data and engagement metrics for Copilot features across the organization. The report contains user-specific metrics for the previous 28 days, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement. Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date range covered by the report. The report covers a complete 28-day period ending on the most recent day for which data has been processed. Organization owners and authorized users with fine-grained "View Organization
Get Copilot organization user-teams report for a specific day
Use this endpoint to retrieve download links for the Copilot organization user-teams report for a specific day. The report provides user-team join data for Copilot across the organization, with one entry per user-team pair. The report contains user-team membership data for the specified day, enabling consumers to join with the existing organization user reports to compute team-level usage metrics. Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Organization owners and authorized users with fine-grained "View Organization Copilot Metrics" permission can retrieve Copilot metrics reports for the organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. For more information about organization metrics
Set Copilot cloud agent permissions for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Sets the policy for which repositories in an organization can use Copilot cloud agent. Organization owners can configure whether Copilot cloud agent is enabled for all repositories, selected repositories, or no repositories owned by the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Set selected repositories for Copilot cloud agent in an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Replaces the list of selected repositories that are enabled for Copilot cloud agent in an organization. This method can only be called when the cloud agent repository policy is set to `selected`. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Set Copilot content exclusion rules for an organization
> [!NOTE] > This endpoint is in public preview and is subject to change. Sets Copilot content exclusion path rules for an organization. To configure these settings, go to the organization's settings on GitHub. For more information, see "[Excluding content from GitHub Copilot](https://docs.github.com/copilot/managing-copilot/configuring-and-auditing-content-exclusion/excluding-content-from-github-copilot#configuring-content-exclusions-for-your-organization)." Organization owners can set Copilot content exclusion rules for the organization. OAuth app tokens and personal access tokens (classic) need the `copilot` scope to use this endpoint. > [!CAUTION] > * At this time, the API does not support comments. When using this endpoint, any existing comments in your rules will be deleted. > * At this time, the API does not support duplicate keys. If you submit content exclusions through the API with duplicate keys, only the last occurrence will be saved. Earlier entries with the same key
Set Copilot customizations for a team
Replaces the entire GitHub-managed Copilot customization document for an organization team, creating it on the first write. The request body is the customization document itself. Include every plugin assignment and marketplace you want to keep. Entries omitted from the request are removed from the stored document; this endpoint does not merge changes with existing customizations. Reading a document before replacing it does not prevent another edit between requests. The authenticated user must be an organization owner or a team maintainer. For an organization team managed by an enterprise team or SCIM-backed identity provider group, the authenticated user must be an organization owner. Token permissions do not grant access to teams the authenticated user cannot administer. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Fine-grained personal access tokens and GitHub App user access tokens need the organization's "Copilot agent
Set the Copilot code review policy for an organization
Sets the Copilot code review policy for an organization, using the same user settings propagation and notifications as organization settings. Policies that depend on Copilot code review keep their values. Organization owners can use this endpoint. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scope. GitHub App tokens and fine-grained personal access tokens are not supported. When the enterprise manages the policy, the request fails with `409` and the code `POLICY_MANAGED_BY_ENTERPRISE`, even if the requested state matches the effective state. Invalid input and conflicts do not change any policy.
Set the Copilot code review runner configuration for an organization
Sets the runner configuration that Copilot code review uses for an organization. After a successful update, Copilot code review uses its own runner configuration and `configured_by` is `code_review`. A `labeled` runner requires at least one label in `runner_labels` or a `runner_group_name`. A `standard` runner does not accept labels or a runner group. When `allow_repository_customization` is omitted, the current effective value is kept. The whole request is validated before any change is made, so invalid input does not change the configuration. Organization owners can use this endpoint. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scope. GitHub App tokens and fine-grained personal access tokens are not supported.
Add a collaborator to an organization Copilot Space
Adds a collaborator (user or team) to a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators. **Note:** When adding users as collaborators, they must already be members of the organization. When adding teams as collaborators, they must be defined in the organization. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Add a collaborator to a Copilot Space for a user
Adds a collaborator to a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. Team collaborators are not supported for user-owned Copilot Spaces. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Create an organization Copilot Space
Creates a new Copilot Space owned by an organization. The authenticated user must have permissions to create spaces in the organization. Organization members with appropriate permissions can create Copilot Spaces to be shared within their organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by the submitted resources.
Create a Copilot Space for a user
Creates a new Copilot Space owned by a user. Only the authenticated user can create spaces for their own account. Users can create personal Copilot Spaces for their individual use. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.
Create a resource for an organization Copilot Space
Creates a new resource in a specific Copilot Space owned by an organization. The authenticated user must have write permissions on the space. The following resource types are supported: `repository`, `github_file`, `free_text`, `github_issue`, `github_pull_request`. The `uploaded_text_file` and `media_content` types are not supported via this endpoint. For `github_file` resources, if a resource with the same repository, file path, and SHA already exists, the existing resource is returned with a `200` status. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being created.
Create a resource for a Copilot Space for a user
Creates a new resource in a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. The following resource types are supported: `repository`, `github_file`, `free_text`, `github_issue`, `github_pull_request`. The `uploaded_text_file` and `media_content` types are not supported via this endpoint. For `github_file` resources, if a resource with the same repository, file path, and SHA already exists, the existing resource is returned with a `200` status. OAuth app tokens and personal access tokens (classic) need the `write:user` scope to use this endpoint.
Delete an organization Copilot Space
Deletes a Copilot Space owned by an organization. The authenticated user must have permissions to delete spaces in the organization. **Warning:** This action is permanent and cannot be undone. Deleting a Copilot Space will remove all associated resources and configurations. Organization members with appropriate permissions can delete Copilot Spaces owned by their organization. OAuth app tokens and personal access tokens (classic) need both the `read:org` and `repo` scopes to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Delete a Copilot Space for a user
Deletes a Copilot Space owned by a user. The authenticated user must be the owner of the space. **Warning:** This action is permanent and cannot be undone. Deleting a space will remove all associated resources and configurations. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Delete a resource from an organization Copilot Space
Deletes a resource from a specific Copilot Space owned by an organization. The authenticated user must have write permissions on the space. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Delete a resource from a Copilot Space for a user
Deletes a resource from a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. OAuth app tokens and personal access tokens (classic) need the `write:user` scope to use this endpoint.
Get an organization Copilot Space
Gets details about a specific Copilot Space owned by an organization. The authenticated user must have read access to the Space. Internal Spaces require the authenticated user to be a member of the organization or have been granted read permissions. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Get a Copilot Space for a user
Gets details about a specific Copilot Space owned by a user. The authenticated user must have read access to the Space. Private user spaces require the authenticated user to be the owner of the space. Public user spaces are accessible to any authenticated user. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get a resource for an organization Copilot Space
Gets a specific resource attached to a Copilot Space owned by an organization. The authenticated user must have appropriate permissions to view the space. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Get a resource for a Copilot Space for a user
Gets a specific resource attached to a Copilot Space owned by a user. The authenticated user must have appropriate permissions to view the space. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.
List collaborators for an organization Copilot Space
Lists all collaborators for a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to view collaborators. Each collaborator entry specifies which user or team has access to the space and at what level (reader, writer, or admin). The space owner (organization) is excluded from this list. **Note:** Team collaborators listed here are teams that are defined in the organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
List collaborators for a Copilot Space for a user
Lists all collaborators for a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. Each collaborator entry specifies which user has access to the space and at what level (reader, writer, or admin). The space owner is excluded from this list. Team collaborators are not supported for user-owned Copilot Spaces. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
List organization Copilot Spaces
Lists Copilot Spaces owned by an organization. The authenticated user must have read access to the organization's Copilot Spaces. Only Spaces that are readable by the authenticated user are returned. This includes public Spaces and internal Spaces if the user is a member of the organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in a space; spaces with inaccessible resources are omitted from the response. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List Copilot Spaces for a user
Lists Copilot Spaces owned by a user. The authenticated user must have read access to the user's Copilot Spaces. Only Spaces that are readable by the authenticated user are returned. This includes the user's own spaces, and public user spaces when accessing another user's spaces. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List resources for an organization Copilot Space
Lists all resources attached to a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to view the space. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
List resources for a Copilot Space for a user
Lists all resources attached to a specific Copilot Space owned by a user. The authenticated user must have appropriate permissions to view the space. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.
Remove a collaborator from an organization Copilot Space
Removes a collaborator from a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Remove a collaborator from a Copilot Space for a user
Removes a collaborator from a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Set a collaborator role for an organization Copilot Space
Updates the role of a collaborator for a specific Copilot Space owned by an organization. The authenticated user must have appropriate permissions to manage collaborators. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
Set a collaborator role for a Copilot Space for a user
Updates the role of a collaborator for a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Set an organization Copilot Space
Updates a Copilot Space owned by an organization. The authenticated user must have permissions to update spaces in the organization. Organization members with appropriate permissions can update Copilot Spaces owned by their organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including any being added or updated.
Set a Copilot Space for a user
Updates a Copilot Space owned by a user. Only the authenticated user can update spaces for their own account. Users can update their personal Copilot Spaces. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.
Set a resource for an organization Copilot Space
Updates the metadata of a resource in a specific Copilot Space owned by an organization. The authenticated user must have write permissions on the space. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being updated.
Set a resource for a Copilot Space for a user
Updates the metadata of a resource in a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. OAuth app tokens and personal access tokens (classic) need the `write:user` scope to use this endpoint.
Update Copilot code review settings for an organization
Updates the Copilot code review settings for an organization. Omitted settings are not changed. Set `default_review_effort` to `inherit` to clear the organization's value so repositories use the inherited default again. Changes use the same audit logging and telemetry as organization settings. Organization owners can use this endpoint. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scope. GitHub App tokens and fine-grained personal access tokens are not supported. When a submitted setting cannot be changed by the organization, the request fails with `409` and the code `SETTING_NOT_EDITABLE`. The whole request is validated before any change is made, so invalid input and conflicts do not change any setting.
Update Copilot code review settings for a repository
Updates the Copilot code review settings for a repository. These settings tune how Copilot code review reviews pull requests in the repository. They do not enable Copilot code review, and they can be stored while an enterprise or organization policy disables Copilot code review. Omitted settings are not changed. Set `review_effort` to `inherit` to clear the repository's review effort so it inherits the effort from the organization, the enterprise, or GitHub's default. The whole request is validated before any change is made, so invalid input does not change any setting. Changes use the same audit logging and telemetry as the repository settings page. Repository administrators can use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Create an autolink reference for a repository
Creates a repository autolink to automatically convert text references (e.g., 'TICKET-123') into hyperlinks, using a unique `key_prefix` and a `url_template` that includes `<num>`.
Create an environment variable
Creates an encrypted environment variable for a pre-existing environment within a GitHub repository; will fail if the variable name already exists.
Create an issue
Creates a new issue in a GitHub repository, requiring the repository to exist and have issues enabled; specific fields like assignees, milestone, or labels may require push access.
Create an issue comment
Creates a new comment on an existing GitHub issue or pull request within the specified repository.
Create an organization project
The Projects (classic) creation endpoint used by this action has been retired. Use Projects v2 through the GraphQL `createProjectV2` mutation instead.
Create an organization repository
Creates a new repository within a specified GitHub organization, with options for detailed configuration including visibility, features, merge strategies, initial commit, and templates.
Create an organization variable
Creates a new, uniquely named GitHub Actions variable for an organization, with configurable repository access visibility (all, private, or selected).
Create an organization webhook
Creates a webhook for a GitHub organization to deliver event notifications to a configured URL.
Create a blob
Creates a Git blob in a repository, requiring content and encoding ('utf-8' or 'base64'). Requires write access to the repository.
Create a check run
Creates a new check run for a specific commit in a repository, used by external services to report status, detailed feedback, annotations, and images directly within the GitHub UI. NOTE: This endpoint requires GitHub App authentication - OAuth tokens and personal access tokens cannot create check runs.
Create a check suite
Creates a new check suite for a specific commit (`head_sha`) in an original repository (not a fork). IMPORTANT: This endpoint requires a GitHub App installation access token - OAuth tokens and classic personal access tokens cannot use this endpoint. GitHub dispatches a `check_suite` webhook event with the `requested` action upon success.
Create a codespace for the authenticated user
Creates a GitHub Codespace for the authenticated user, requiring a JSON request body with either `repository_id` (integer) or a `pull_request` object (containing `pull_request_number` (integer) and `repository_id` (integer)). This action allows users to set up a development environment quickly by creating a codespace from a specified repository or pull request.
Create a codespace from a pull request
Creates a GitHub Codespace for an open pull request in a Codespaces-enabled repository, with options to customize its configuration.
Create a codespace in a repository
Creates a GitHub Codespace for the authenticated user in a specified repository, which must be accessible and use a valid `devcontainer.json` if `devcontainer_path` is specified.
Create a commit
Creates a Git commit object in a GitHub repository using an existing tree SHA and optional existing parent commit SHAs. It does not update a branch reference.
Create a commit comment
Creates a comment on a specific commit, or on a specific line if `path` and `position` are provided.
Create a commit status
Sets a commit's status (e.g., error, failure, pending, success from CI/CD) for a given SHA; max 1000 statuses per SHA/context.
Create a custom organization role
The custom organization role creation endpoint has been retired. GitHub's current organization roles REST API documents role listing, lookup, and assignment, but no direct replacement for creating a custom role.
Create a deployment
Creates a GitHub deployment for an existing repository, targeting a specific ref (branch, tag, or SHA). By default, it may attempt to merge the default branch into the requested ref if it is behind.
Create a deployment branch policy
Creates a deployment branch or tag policy for an existing environment in a GitHub repository, using a Ruby File.fnmatch pattern (where `*` doesn't match `/`) to specify which branches or tags are deployable.
Create a deployment status
Creates a status for an existing deployment, updating its operational state, associated URLs, and description.
Create a deploy key
Creates a deploy key for a repository; the repository must exist and be accessible, and the provided key must be a valid public SSH key.
Create a discussion
The team discussions endpoint used by this action has been retired. Use GitHub Discussions instead.
Create a discussion comment
The team discussion comments endpoint used by this action has been retired. Use GitHub Discussions instead.
Create a fork
Creates a fork of an accessible repository, optionally into a specific organization, with a new name, or copying only the default branch.
Create a gist
Creates a new gist on GitHub with provided files, an optional description, and public/secret visibility.
Create a gist comment
Creates a new comment on a specified GitHub gist.
Create a GitHub App from a manifest
Use this action to complete the GitHub App Manifest flow (step 3 of 3) by exchanging the temporary authorization `code` for the app's full configuration, including credentials and private key. The code is provided via redirect URL after creating the app through GitHub's web interface and must be used within 1 hour.
Create a github pages deployment
Creates a GitHub Pages deployment for a repository using a specified artifact and OIDC token, provided GitHub Pages is enabled and the artifact (containing static assets) is accessible.
Create a github pages site
Creates a GitHub Pages site for a repository, with a choice of build type and source location.
Create a label
Creates a label in a specified GitHub repository, provided the repository exists and the user has write permissions. If the label name already exists, it may return a message instead of creating a label.
Create a milestone
Creates a milestone in a GitHub repository for tracking progress on issues or pull requests; requires repository existence and user write permissions.
Create a project card
The Projects (classic) card endpoint used by this action has been retired. Use the REST Projects v2 draft-item or item endpoints instead.
Create a project column (Classic - Deprecated)
Creates a named column in a GitHub Projects (classic) project to organize its cards. DEPRECATED: The Projects (classic) REST API has been sunset and this action no longer works on GitHub.com. Use GitHub Projects V2 with its GraphQL API instead.
Create a pull request
Creates a pull request in a GitHub repository, requiring existing `base` and `head` branches; `title` or `issue` must be provided.
Create a reference
Creates a NEW Git reference (branch or tag) in a repository. IMPORTANT: This action ONLY creates NEW references - if the reference already exists, it will fail with a 422 'Reference already exists' error. To update an existing reference, use the 'Update a reference' (GITHUB_UPDATE_A_REFERENCE) action instead. The repository must not be empty prior to this operation.
Create a registration token for an organization
Generates a temporary (one-hour) registration token to add a new self-hosted runner to an organization for GitHub Actions.
Create a registration token for a repository
Generates a time-limited token required to register a new self-hosted runner with a specific repository.
Create a release
Creates a release in a GitHub repository for a specified tag; the tag must be unique for published releases, and if a `discussion_category_name` is given, it must already exist.
Create a remove token for an organization
Generates a token, valid for one hour, to authenticate removing a self-hosted runner from an organization.
Create a remove token for a repository
Generates a temporary (one-hour validity) token required to unregister and remove a self-hosted runner from a repository.
Create a reply for a review comment
Posts a reply to a specific review comment on a GitHub pull request, requiring the repository, pull request, and original comment to exist, and a non-empty reply body.
Create a repository dispatch event
Triggers a GitHub Actions workflow or a webhook on a repository by creating a repository dispatch event, allowing programmatic triggering of workflows based on events outside of GitHub.
Create a repository for the authenticated user
Creates a new repository for the authenticated user.
Create a repository from an unpublished codespace
Publishes the specified codespace to a new repository, using the codespace's current state as the initial commit.
Create a repository project
Creates a GitHub Projects V2 project owned by the repository owner and linked to the specified repository. A supplied project description is not applied during creation.
Create a repository ruleset
Creates a uniquely named ruleset for a repository, defining rules for branches or tags with specified enforcement, conditions, and bypass actors.
Create a repository using a template
Creates a new repository from an existing template repository; the authenticated user must have access to the template and, if creating in an organization, repository creation permissions within it.
Create a repository variable
Creates a new, unencrypted variable in a repository for GitHub Actions workflows; fails if a variable with the same name already exists.
Create a repository webhook
Creates a webhook for a specified repository; requires admin permissions on the repository.
Create a review comment for a pull request
Creates a review comment on a pull request diff at a specific line or range, using a diff position, or as a reply to an existing review comment.
Create a review for a pull request
Creates a pull request review, allowing approval, change requests, or comments; `body` is required if `event` is `REQUEST_CHANGES` or `COMMENT`, and omitting `event` makes the review `PENDING`.
Create a scoped access token
Creates a repository-scoped and/or permission-scoped GitHub App user access token from a non-scoped user token. The endpoint requires Basic authentication with the app's client ID and client secret; repository scope may be specified by names or IDs.
Create a dependency snapshot
Creates a snapshot of a repository's dependencies to populate the GitHub dependency graph and enable security alerts; `sha` must be a 40-character commit ID, `ref` a fully qualified Git reference (e.g., `refs/heads/main`), and `scanned` an ISO 8601 timestamp.
Create a tag object
Creates an annotated Git tag object in a repository, pointing to an existing commit, tree, or blob identified by its SHA and specified type.
Create a tag protection state for a repository
The tag protection endpoint used by this action has been retired. Use repository rulesets targeting tags instead.
Create a team
Creates a new team in an organization, optionally with maintainers, repositories, specific privacy, notification settings, or a parent team; if `parent_team_id` is given, `privacy` must be 'closed'.
Create a temporary private fork
Creates a temporary private fork of the specified repository to address a security vulnerability, linking the fork to a GHSA ID that must be specifically associated with this repository; the fork may take up to 5 minutes to become accessible.
Create a tree
Creates a new Git tree object in a repository, defining file/directory structure by specifying tree entries, optionally building on a `base_tree` SHA; all provided SHAs must be valid.
Create a user project
Creates a GitHub Projects V2 project board for the authenticated user using the GraphQL API. An optional project description is accepted but not applied during creation.
Create a workflow dispatch event
Manually triggers a GitHub Actions workflow identified by `workflow_id` at a given `ref`, if the workflow is configured to accept `workflow_dispatch` events.
Create a branch
Creates a new branch in a GitHub repository pointing to a specified commit. Use this action when you need to create a new branch from an existing commit SHA. IMPORTANT: This action only creates NEW branches. If the branch already exists, it will fail with a 422 'Reference already exists' error. The repository must not be empty (must have at least one commit) before creating a branch.
Create commit signature protection
Enables commit signature protection for a specified branch, requiring all new commits to be signed.
Create a custom deployment protection rule on an environment
Enables a custom deployment protection rule for an existing environment in a repository by linking a configured GitHub App (via `integration_id`) to control deployments.
Create draft item for user project
Creates a draft issue item in a user-owned GitHub ProjectsV2. Use when you need to add a new draft item to track ideas or tasks in a user's project.
Create inference chat completions
Tool to create chat completions using GitHub Models inference API. Use when you need to generate AI-powered text responses using models like GPT-4, Claude, or Llama through GitHub's inference endpoint.
Create inference embeddings
Tool to create inference embeddings using GitHub's AI models. Use when you need to convert text into vector representations for similarity search, clustering, or other ML tasks.
Create issue type
Create a new issue type for a GitHub organization. Requires the authenticated user to be an organization administrator. OAuth tokens need admin:org scope.
Create JIT runner config for repo
Generates a temporary Just-In-Time (JIT) configuration for a new self-hosted GitHub Actions runner for a repository; any specified non-default `runner_group_id` must be an existing runner group accessible by the repository.
Create or update an environment
Creates a new environment or updates an existing one in a GitHub repository, allowing configuration of deployment protection rules such as wait timers and reviewers; ensure `environment_name` is URL-encoded if it contains special characters.
Create or update an environment secret
Creates or updates an environment secret with an `encrypted_value` that was encrypted using the public key identified by `key_id` for the specified environment.
Create or update an organization secret
Creates or updates an organization secret for GitHub Actions, requiring its value to be pre-encrypted via LibSodium using the organization's public key.
Create or update a repository secret
Creates or updates a GitHub Actions secret within a specific repository; use `encrypted_value` and `key_id` to set or change its value.
Create or update a secret for the authenticated user
Creates or updates a Codespaces secret for the authenticated user, optionally restricting access to selected repositories. Accepts plaintext and encrypts it using the user's GitHub public key, or accepts a pre-encrypted value with its key ID.
Create or update custom properties for an organization
Creates new custom property schemas or updates existing ones in bulk for a specified organization; each property definition must include `property_name` and `value_type`.
Create or update a custom property for an organization
Creates a new custom property (name must be unique for creation) or updates an existing one for an organization to define metadata for its repositories.
Create or update file contents
Creates or updates a file in a GitHub repository with a commit message and supplied content. A missing non-default branch may result in the change being committed to the repository's default branch. Content may be supplied as plain text or Base64.
Create or Update GitHub Pages Site
Enables or updates GitHub Pages configuration for a repository, including source, custom domain and HTTPS settings. The build type defaults to legacy, which requires a source branch even when updating an existing site.
Create or update repo secret with encrypted value
Creates or updates a Dependabot secret in a repository using an `encrypted_value` (pre-encrypted with LibSodium using the repository's Dependabot public key) and its corresponding `key_id`. This action allows you to securely manage secrets for a given repository, ensuring that sensitive data remains protected during the update process. By providing the encrypted value alongside the key ID, you can seamlessly maintain the necessary credentials for your repository's operations.
Create reaction for an issue
Creates a reaction for a specified issue within a GitHub repository.
Create reaction for an issue comment
Creates a reaction for a specific comment on an issue within a GitHub repository.
Create reaction for a commit comment
Creates an emoji reaction for a commit comment; if the user has already reacted with the same content, details of the existing reaction are returned.
Create reaction for a pull request review comment
Adds a specified reaction to a pull request review comment within a GitHub repository.
Create reaction for a release
Creates an emoji reaction for a specific, existing release in a GitHub repository.
Create reaction for a team discussion
The team discussion reactions endpoint used by this action has been retired. Use GitHub Discussions instead.
Create reaction for a team discussion comment
The team discussion comment reactions endpoint used by this action has been retired. Use GitHub Discussions instead.
Create repository
Creates a new repository for the authenticated user. Use this action when you need to create a new GitHub repository under the authenticated user's account. The repository name must be unique for the user, and various settings can be configured such as visibility (public/private), enabled features (issues, wiki, projects), and merge options.
Create sponsorship
Tool to start a new GitHub sponsorship or reactivate a past sponsorship using GraphQL. Use when you need to sponsor a maintainer through GitHub Sponsors with a specified amount and privacy level.
Create Sponsors Tier
Create a GitHub Sponsors payment tier for a specified user or organization using GraphQL, with an amount and description.
Create or Update Organization Secret with LibSodium
Creates or updates a Dependabot organization secret, requiring the secret value to be pre-encrypted with LibSodium using the organization's public key obtained from the 'Get an organization public key' endpoint.
Create user list
Tool to create a new user list on GitHub. Use when you need to organize and group GitHub users for easier tracking and management.
Create view for user project
Tool to create a new view in a user-owned GitHub project (Projects V2). Use when you need to add a customized view with specific layout, filters, and visible fields to organize project items. Note: This action works with GitHub Projects V2. The view can be configured with different layouts (table, board, roadmap) and optional filters. The visible_fields parameter is not applicable to roadmap layouts.
Decline a repository invitation
Declines a specific, pending repository invitation for the authenticated user, identified by its `invitation_id`.
Delete access restrictions
Removes all user, team, and app-based access restrictions from a protected branch.
Delete admin branch protection
Removes admin enforcement from a protected branch (branch name cannot contain wildcard characters) in a repository.
Delete an app authorization
Deletes a user's OAuth application grant, revoking the associated tokens for that application. Identify the grant with an access token issued by the app; GitHub requires the app's client ID and client secret for Basic Authentication.
Delete an app token
Revokes a specified OAuth access token issued by an OAuth App or a GitHub App with OAuth authorization. GitHub requires Basic Authentication using the app's client ID and client secret for this operation.
Delete an artifact
Deletes a GitHub artifact by its ID within a repository, typically resulting in an empty response (HTTP 204 No Content) on success.
Delete an autolink reference from a repository
Deletes a specific autolink reference (which automatically links external resource IDs like JIRA-123 to URLs) from the specified repository.
Delete a file
Deletes a file by path from a GitHub repository. The file's blob SHA is automatically fetched if not provided.
Delete a package version for the authenticated user
Deletes an existing package version associated with the authenticated user.
Delete a reference
Deletes a Git reference from a repository. Branch names may be supplied without a prefix; they are treated as branch references.
Delete a release
Permanently deletes a specific release, its assets, and potentially its associated Git tag from a repository.
Delete a release asset
Deletes a specific release asset from a GitHub repository; this action is idempotent.
Delete a release reaction
Deletes a reaction from a GitHub release, provided the repository, release, and reaction exist.
Delete a repository
Permanently deletes the specified repository; this is a destructive, irreversible action that requires admin privileges for the repository.
Delete a repository invitation
Deletes a specified repository invitation.
Delete a repository ruleset
Permanently deletes a repository ruleset.
Delete a repository secret
Deletes a named GitHub Actions secret from a specified repository; this operation is destructive and idempotent, and requires the repository to exist.
Delete a repository subscription
Deletes the authenticated user's subscription to a specified repository if it exists, effectively 'unwatching' it.
Delete a repository variable
Deletes a named variable (e.g., for GitHub Actions workflows) from a repository; the repository and the variable must already exist.
Delete a repository webhook
Deletes a specific webhook from a repository.
Delete a review comment for a pull request
Deletes a specific pull request review comment.
Delete a secret for the authenticated user
Deletes an existing Codespaces secret for the authenticated user by `secret_name`. This is a destructive and irreversible operation. Returns 404 if the secret does not exist.
Delete a self hosted runner from an organization
Removes a self-hosted runner from a GitHub organization, including when its machine no longer exists, immediately disconnecting it from GitHub Actions. Requires organization admin access and appropriate authorization; successful deletion returns a success message.
Delete a self hosted runner from a repository
Removes a specific self-hosted runner (by `runner_id`) from a repository, if registered there; this is idempotent.
Delete a tag protection state for a repository
The tag protection endpoint used by this action has been retired. Use repository rulesets targeting tags instead.
Delete a team
Deletes a team (and any child teams) from an organization.
Delete a thread subscription
Call this to mute a specific notification thread by deleting the user's subscription; notifications may still occur if the user is @mentioned, comments, or due to repository watch settings.
Delete a workflow run
Deletes a specific workflow run from a repository.
Delete branch protection
Removes all protection rules from a specific branch in a GitHub repository; the branch must currently have protection rules enabled.
Delete a codespace for the authenticated user
Deletes a specific codespace owned by the authenticated user; this is a destructive action and the codespace must exist.
Delete a code scanning analysis from a repository
Deletes a specific code scanning analysis by its ID from a repository; `confirm_delete` must be `true` if it's the last analysis of its type for a given tool and reference to prevent data loss.
Delete a commit comment
Deletes a specific commit comment, identified by its `comment_id`, from the specified repository; the comment must exist.
Delete a commit comment reaction
Deletes a reaction from a commit comment in a GitHub repository.
Delete commit signature protection
Disables GPG commit signature protection for a specific branch in a GitHub repository, meaning commits pushed to this branch no longer require GPG signing.
Delete a custom organization role
The custom organization role deletion endpoint has been retired. GitHub's current organization roles REST API documents role listing, lookup, and assignment, but no direct replacement for deleting a custom role.
Delete dependabot secret by name
Deletes a specific Dependabot secret, identified by its name, from a given repository if both the repository and secret exist.
Delete a deployment
Permanently deletes a specified *inactive* deployment from a repository.
Delete a deployment branch policy
Deletes a specific deployment branch or tag policy, identified by its ID, from a given environment within a repository.
Delete a deploy key
Deletes a specific deploy key from a repository; to change a key's properties or access scope, the existing key must be deleted and a new one created.
Delete a discussion
The team discussions endpoint used by this action has been retired. Use GitHub Discussions instead.
Delete a discussion comment
The team discussion comments endpoint used by this action has been retired. Use GitHub Discussions instead.
Delete authenticated user email address
Attempts to delete specified email addresses from the authenticated user's GitHub account.
Delete an environment
Deletes an existing deployment environment from an existing repository.
Delete an environment secret
Deletes an existing and accessible secret from a specified environment within a GitHub repository, returning an empty dictionary on success or error details otherwise.
Delete an environment variable
Deletes a named environment variable from a specified, existing environment within a GitHub repository.
Delete a gist
Permanently deletes an existing GitHub gist, specified by its `gist_id`; this action is destructive and cannot be undone.
Delete a gist comment
Deletes a specific comment from a GitHub Gist using its `gist_id` and `comment_id`.
Delete GitHub Actions cache by ID
Deletes a specific GitHub Actions cache from a repository using its unique `cache_id`.
Delete a GitHub Pages site
Deletes the GitHub Pages site for the specified repository; completes without error if no site is currently enabled.
Delete an issue comment
Permanently deletes a specific comment by its ID from an issue or pull request, if the repository exists and the comment ID is valid.
Delete an issue comment reaction
Deletes a reaction from an issue comment in a repository; the repository, comment, and reaction must exist.
Delete an issue reaction
Permanently removes a specific reaction from an issue in a GitHub repository.
Delete a label
Permanently removes an existing label from a repository.
Delete a milestone
Deletes the specified milestone if it exists; this operation is idempotent, typically returning a 404 if the milestone is not found or already deleted.
Delete an organization
Deletes a GitHub organization and its repositories; this is a destructive action and the organization name will be unavailable for reuse for approximately 90 days.
Delete an organization secret
Permanently deletes a GitHub Actions secret from a GitHub organization, making it unavailable to workflows.
Delete an organization variable
Deletes a named GitHub Actions variable from a specified organization.
Delete an organization webhook
Deletes a specific webhook, identified by `hook_id`, from an existing organization.
Delete a codespace from the organization
Requests deletion of a specified organization member's codespace. A successful response may indicate that deletion was accepted and is still in progress; a not-modified response is also reported as successful.
Delete a package for an organization
Deletes a specific package in an organization; public packages with over 5,000 downloads cannot be deleted. Authentication, permission and not-found errors can be returned as response messages rather than raised.
Delete a package for the authenticated user
Permanently deletes a specific package owned by the authenticated user; public packages downloaded over 5,000 times cannot be deleted via this API. A 404 is returned with success set to false rather than raised.
Delete package version
Tool to delete a package version using GitHub GraphQL API. Use when you need to remove a specific version of a package by its global node ID.
Delete package version for an organization
Deletes a specific package version within an organization; requires admin permissions for packages with over 5,000 downloads.
Delete package version for a user
Deletes a specific version of a package owned by the specified user. The response indicates whether deletion succeeded; authentication, permission, and not-found errors are returned as unsuccessful results.
Delete a pending review for a pull request
Deletes a pending (unsubmitted) review from a pull request; this is only possible if the review has not yet been submitted.
Delete a project
Deletes the specified GitHub project (Projects V2) using the GraphQL API. Note: This action uses GitHub's Projects V2 GraphQL API. The legacy Projects (classic) REST API was sunset on April 1, 2025 and is no longer available. The project is permanently deleted and cannot be recovered. The user must have admin permissions for the project to delete it.
Delete a project card (Classic - Deprecated)
Deletes a project card from a GitHub 'Project (classic)'; this operation is idempotent. DEPRECATION NOTICE: GitHub Classic Projects (V1) and its REST API were sunset on April 1, 2025. This action may return a 404 error on GitHub.com. For new projects, use GitHub Projects V2 which uses the GraphQL API instead. See: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/
Delete a project field (column)
Deletes a project field (column) from a GitHub Projects V2 project using the GraphQL API. IMPORTANT: GitHub Classic Projects REST API was sunset on April 1, 2025. This action now uses the GitHub Projects V2 GraphQL API with the deleteProjectV2Field mutation. Note: The built-in Status field cannot be deleted as it is a core field in GitHub Projects V2. Only custom fields can be deleted.
Delete project item for user
Tool to delete a project item for a user in GitHub Projects V2. Use when you need to remove an item from a user's project. Requires the project item's GraphQL node ID (starts with 'PVTI_'). Uses the GitHub GraphQL API deleteProjectV2Item mutation.
Delete a pull request comment reaction
Deletes a specific reaction from a pull request review comment, provided the comment and reaction exist on that comment within the specified repository.
Delete pull request review protection
Disables the requirement for pull request reviews before merging for a specific, existing branch in an existing repository; this action is idempotent and will succeed even if the protection is not currently enabled.
Delete repo codespace secret by name
Deletes a specific Codespace secret from a repository by its name; this action is idempotent and will succeed even if the secret doesn't exist.
Delete social accounts for the authenticated user
Deletes currently linked social media account URLs from the authenticated user's GitHub profile.
Delete team discussion comment reaction
The team discussion comment reactions endpoint used by this action has been retired. Use GitHub Discussions instead.
Delete team discussion reaction
The team discussion reactions endpoint used by this action has been retired. Use GitHub Discussions instead.
Delete User List
Tool to delete a GitHub user list using GraphQL. Use when you need to remove a user list from a GitHub account.
Delete a package for a user
Deletes a package owned by the specified user, requiring admin permissions for the authenticated user; deletion of public packages with over 5,000 downloads may require GitHub support. A 404 or 422 is returned as an error message rather than raised.
Delete workflow run logs
Deletes all logs for a specific workflow run in a GitHub repository, provided the repository and run exist.
Get a Dependabot alert
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
Get repository Dependabot runner settings
Gets the runner Dependabot uses for this repository: standard GitHub-hosted runners, or labeled runners with their labels and optional runner group. The response matches the repository's code security settings page. Labeled runners take effect only for private and internal repositories with GitHub Actions enabled. Otherwise, the response shows `standard`. Repository administrators and users who can manage security products for the repository can use this endpoint. OAuth app tokens and personal access tokens (classic) require the `repo` scope for both public and private repositories. GitHub App tokens and fine-grained personal access tokens require repository Administration read permission. Workflow `GITHUB_TOKEN` access is not supported.
List Dependabot alerts for an organization
Lists Dependabot alerts for an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List Dependabot alerts for a repository
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
Lists the repositories Dependabot can access in an organization
Lists repositories that organization admins have allowed Dependabot to access when updating dependencies. > [!NOTE] > This operation supports both server-to-server and user-to-server access. Unauthorized users will not see the existence of this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Set the default repository access level for Dependabot
Sets the default level of repository access Dependabot will have while performing an update. Available values are: - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. Unauthorized users will not see the existence of this endpoint. This operation supports both server-to-server and user-to-server access. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
Set repository Dependabot runner settings
Sets the runner Dependabot uses for this repository. This is the same setting as on the repository's code security settings page. `labeled` turns on labeled runners with exactly one runner label and an optional runner group. `standard` turns them off and clears the label and group. Labeled runners are only available for private and internal repositories with GitHub Actions enabled. The response returns the settings after the change. Repository administrators and users who can manage security products for the repository can use this endpoint, subject to enterprise policy. OAuth app tokens and personal access tokens (classic) require the `repo` scope. GitHub App tokens and fine-grained personal access tokens require repository Administration write permission. Workflow `GITHUB_TOKEN` access is not supported.
Update a Dependabot alert
The authenticated user must have access to security alerts for the repository to use this endpoint. For more information, see "[Granting access to security alerts](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)." OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
Updates Dependabot's repository access list for an organization
Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies. > [!NOTE] > This operation supports both server-to-server and user-to-server access. Unauthorized users will not see the existence of this endpoint. OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint. **Example request body:** ```json { "repository_ids_to_add": [123, 456], "repository_ids_to_remove": [789] } ```
Fetch a software bill of materials (SBOM) for a repository.
Fetches a previously generated software bill of materials (SBOM) for a repository. When the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format. The generated SBOM report may be retained for up to one week from the original request. The temporary download URL returned by this endpoint expires separately, and its expiry is set when the fetch request is made.
Request generation of a software bill of materials (SBOM) for a repository.
Triggers a job to generate a software bill of materials (SBOM) for a repository in SPDX JSON format.
Disable a custom protection rule for an environment
Disables a specific, currently active custom deployment protection rule for an existing environment within a GitHub repository.
Disable a workflow
Disables a specified workflow (by ID or filename) in a given GitHub repository, preventing new automatic triggers; any in-progress runs will continue.
Disable private vulnerability reporting for a repository
Disables private vulnerability reporting for an existing GitHub repository, preventing direct private vulnerability reports to maintainers via GitHub's interface for this repository.
Disable Repository Actions In Org
Removes a repository from the list of selected repositories enabled for GitHub Actions in an organization. Only works when the organization's `enabled_repositories` policy is set to `selected`. Requires admin:org scope.
Dismiss a review for a pull request
Dismisses an APPROVED or CHANGES_REQUESTED review on a pull request with a mandatory explanatory message. IMPORTANT: Only reviews in APPROVED or CHANGES_REQUESTED state can be dismissed. Reviews in COMMENTED, PENDING, or already DISMISSED state will return a 422 error. To dismiss a review on a protected branch, you must be a repository admin or be authorized to dismiss pull request reviews.
Download an artifact
Downloads a GitHub Actions workflow artifact as a ZIP file. Returns the artifact as a downloadable file. Use GITHUB_LIST_ARTIFACTS_FOR_A_REPOSITORY or GITHUB_LIST_WORKFLOW_RUN_ARTIFACTS to get valid artifact IDs first.
Download a repository tarball
Gets a redirect URL for downloading a repository tarball at a specific Git reference. For private repositories, the URL expires after five minutes.
Download a repository archive ZIP
Requests a ZIP archive of a repository at a specific Git reference (branch, tag, or commit SHA) and returns the redirect URL for downloading it. For private repositories, the URL expires after five minutes.
Download job logs for a workflow run
Downloads logs for a specific job in a GitHub Actions workflow run, contingent on the repository's existence and the job ID being valid and having produced logs.
Download workflow run attempt logs
Downloads a ZIP archive of logs for a specific workflow run attempt. Returns a downloadable ZIP file containing logs for all jobs and steps in the workflow run.
Download workflow run logs
Downloads logs for a specific GitHub Actions workflow run as a ZIP archive containing log files for each job in the workflow.
Enable a workflow
Reactivates a currently disabled GitHub Actions workflow within a repository using its workflow ID or filename.
Enable GitHub actions in selected repositories
Sets the specific repositories that can use GitHub Actions within an organization by replacing the current list; only applies if the organization's Actions policy is 'selected repositories'.
Enable private vulnerability reporting for a repository
Enables private vulnerability reporting for a repository, allowing security researchers to privately submit vulnerability reports to maintainers.
Enable repo for Github Actions
Adds a repository to the list of selected repositories enabled for GitHub Actions in an organization. Requires the organization's 'enabled_repositories' policy to be set to 'selected'.
Encrypt and update dev secret
Creates or updates a repository's GitHub Codespaces secret. It accepts a plaintext value for automatic encryption or a value already encrypted with the repository's Codespaces public key.
Encrypt org dev env secret
Creates or updates an organization's GitHub Codespaces secret using an encrypted value and its corresponding public key ID.
Export a codespace for the authenticated user
Triggers an export of the authenticated user's specified codespace, automatically stopping it if active. Returns the export status and, when available, an export URL.
Export an SBOM for a repository
Unavailable after November 13, 2026: GitHub closed this synchronous SBOM export. Use `GITHUB_DEPENDENCY_GRAPH_GENERATE_SBOM_REPORT` to request asynchronous generation, then `GITHUB_DEPENDENCY_GRAPH_FETCH_SBOM_REPORT` to retrieve the report. This action remains registered for compatibility.
Register an app installation for external custom properties
Registers a GitHub App installation so it can read and write external custom properties for an organization, and assigns it a display name. The display name must be 1 to 15 characters and contain only letters and numbers. Capitalization is preserved as entered. An app installation can only be registered once, and its display name can't be changed afterward. Calling with an app installation that has already been registered returns a `422` response with an `already_exists` error code for `installation_id`. If the display name is already in use by another app installation in the organization, the response is `422` with an `already_exists` error code for `display_name`. An invalid display name also returns `422`. The app installation being registered must have write or admin permission for organization external custom properties for repositories. If it doesn't, the response is `422`. This is the permission of the installation being registered, which isn't necessarily the caller.
Create or update external custom property values for a property across organization repositories
Create new or update existing external custom property values for a single named property across repositories that belong to an organization. Up to 100 repository values can be updated in a single request. Repositories not included in the request are left unchanged. Using a value of `null` for a repository will remove or 'unset' the property value for that repository. A request that only contains `null` values for a property that does not yet exist is a no-op. To use this endpoint, the authenticated GitHub App must have the `organization_external_properties_for_repos:write` permission.
Find Pull Requests
Searches pull requests by repository, author, state, labels, merge status, and other filters; without a repository or owner, it searches public repositories by default or PRs involving the authenticated user when requested. Search results are capped at approximately 1,000; creation and update date filters do not filter merge dates.
Find Repositories
Search GitHub repositories by keywords, language, stars, topics, and ownership, returning paginated results. Repository qualifiers are reduced to owner filters, an owner with no public repositories can yield an immediate empty result, and OR expressions are limited to six terms; check incomplete_results for non-exhaustive results.
Follow Organization (GraphQL)
Tool to follow a GitHub organization using GraphQL. Use when you need to make the authenticated user follow an organization.
Follow a user
Allows the authenticated user to follow the GitHub user specified by `username`; this action is idempotent and the user cannot follow themselves.
Follow User (GraphQL)
Tool to follow a GitHub user using GraphQL. Use when you need to make the authenticated user follow another user.
Force cancel a workflow run
Requests force cancellation of a queued or in-progress GitHub Actions workflow run, bypassing conditions such as always(), when standard cancellation fails. A successful response means the request was accepted for asynchronous processing; completed runs cannot be canceled, and repository write permissions are required.
Fork a gist
Forks a specified public gist, creating a copy under the authenticated user's account.
Generate release notes content for a release
Generates Markdown release notes content (listing changes, pull requests, and contributors) for a GitHub repository release, customizable via tags and a configuration file.
Get access restrictions
Retrieves user, team, and GitHub App push restrictions for a protected branch. A 404 is returned as a message indicating that restrictions were not found; it can also mean the branch does not exist or is not protected.
Get admin branch protection
Checks if repository administrators are subject to the branch protection rules on a specific branch.
Get all API versions
Retrieves all officially supported, date-based (e.g., "2022-11-28") versions of the GitHub REST API from the /versions endpoint.
Get all contributor commit activity
Retrieves commit activity (total commits, weekly additions/deletions/commits) for all contributors to a repository; may require a retry if GitHub returns 202 while preparing data.
Get all deployment protection rules for an environment
Lists all enabled custom deployment protection rules for a specific environment in a repository; the environment must exist and be configured for deployments.
Get an app
Retrieves publicly available information for an existing GitHub App, identified by its unique URL-friendly `app_slug`.
Get an artifact
Gets a specific artifact for a repository by `artifact_id`. This action retrieves the details of a specific artifact from a GitHub repository using the artifact's unique identifier. It allows users to access information about artifacts stored in the repository.
Get an assignment
Closed: the GitHub Classroom API is no longer available as of August 28, 2026, following the GitHub Classroom sunset. This assignment action remains registered for compatibility.
Get an autolink reference of a repository
Retrieves a specific autolink reference (which automatically hyperlinks text like 'JIRA-123' to an external system) for a repository using its unique ID; requires administrator access to the repository.
Get an environment
Retrieves the details of a specific deployment environment for a given repository, including its name, configurations, and current status.
Get an environment public key
Retrieves the public key for a specified GitHub repository environment, used to encrypt secrets for GitHub Actions.
Get an environment secret
Retrieves metadata (name and timestamps) for a single secret in a GitHub Actions environment. Note: The actual secret value is never returned by this API for security reasons.
Get an environment variable
Retrieves a specific environment variable from a GitHub Actions environment by repository owner, repository name, environment name, and variable name.
Get an issue
Retrieves detailed information about a specific issue in a repository using the owner, repository name, and issue number.
Get an issue comment
Action to get an issue comment.
Get an issue event
Fetches details of a specific issue event for a given repository and event ID.
Get an organization
Get an organization
Get an organization public key
Retrieves a GitHub organization's Actions secrets public key for encrypting organization secrets.
Get an organization role
Retrieves a specific GitHub organization role by its ID.
Get an organization secret
Gets an organization secret's metadata (e.g., name, creation/update dates, visibility), but not its encrypted value.
Get an organization variable
Retrieves details (name, value, visibility, timestamps) of a specific, existing variable for an existing GitHub organization.
Get an organization webhook
Retrieves the full configuration, including subscribed events and delivery settings, for an existing organization webhook.
Get assignment grades
Closed: the GitHub Classroom API is no longer available as of August 28, 2026, following the GitHub Classroom sunset. This grades action remains registered for compatibility.
Get authenticated user organization membership
Retrieve the connected user's membership in one GitHub organization.
Get a blob
Retrieves the raw, typically Base64-encoded, content of a file (blob) from a GitHub repository using its SHA hash, if the repository and blob SHA exist.
Get a branch
Retrieves detailed information for a specified branch within a GitHub repository.
Get a commit
Retrieves a specific commit from a repository by its owner, name, and a valid commit reference (SHA, branch, or tag), supporting pagination for large diffs.
Get a milestone
Retrieves detailed information for a specific milestone within a GitHub repository by its number.
Get a package for an organization
Retrieves a specific package (by type and name) from an organization, if both the package and organization exist.
Get a package for a user
Retrieves metadata for a specific package owned by a GitHub user, using package type, name, and username as identifiers.
Get a package for the authenticated user
Retrieves detailed information for a specific package owned by the authenticated user.
Get a package version for an organization
Retrieves detailed information for a specific version of a package within an organization.
Get a package version for a user
Retrieves a specific public package version associated with a GitHub user.
Get authenticated user package version
Retrieves detailed information for an existing specific package version associated with the authenticated user, identified by its type, name, and version ID.
Get a project
Retrieves detailed information for a specific GitHub project (V2) using its project number and owner. Note: This action uses GitHub's Projects V2 REST API. The legacy Projects (classic) REST API was sunset on April 1, 2025. The project is identified by its number (visible in the project URL) and owner (either a username or organization name). If no owner is specified, the authenticated user is assumed.
Get a project card
The Projects (classic) card endpoint used by this action has been retired. Use the REST Projects v2 item endpoints instead.
Get a project column (Classic - Deprecated)
The Projects (classic) column endpoint used by this action has been retired. Use the REST Projects v2 field and view endpoints instead.
Get a pull request
Retrieves a specific pull request from a GitHub repository using its owner, repository name, and pull request number.
Get a reference
Retrieves a specific Git reference (e.g., a branch, tag, or fully qualified like 'heads/main') from a GitHub repository. The reference must exist in the repository; use 'list_matching_references' first if unsure what references are available.
Get a release
Gets a specific release from a GitHub repository, provided the repository is accessible and the release exists.
Get a release asset
Gets metadata for a specific release asset in a GitHub repository, including a `browser_download_url` for downloading the asset.
Get a release by tag name
Gets a release from a GitHub repository by its tag name; the repository and a release with this tag must already exist.
Get a repository
Retrieves detailed information about an existing and accessible GitHub repository.
Get a repository public key
Gets a repository's public key for encrypting secrets to be used in GitHub Actions, if the repository exists and is accessible.
Get a repository readme
Fetches the README file (if it exists and is accessible) from a specified GitHub repository, returning its Base64-encoded content and metadata.
Get a repository readme for a directory
Retrieves the README file from a specified directory within a GitHub repository, optionally at a given commit, branch, or tag.
Get a repository ruleset
Retrieves a specific repository ruleset by its ID; if `includes_parents` is true, the search for this `ruleset_id` also extends to rulesets from parent organizations.
Get a repository rule suite
Gets detailed information for a specific repository rule suite by its ID, including its evaluation status and the results of its individual rules.
Get a repository secret
Gets metadata (name, creation/update timestamps) for an existing repository secret, excluding its encrypted value.
Get a repository subscription
Gets the authenticated user's subscription details for a repository, indicating if they receive notifications.
Get a repository variable
Gets a specific GitHub Actions variable by name from an accessible repository.
Get a repository webhook
Returns the configuration of an existing webhook for a given repository.
Get a review comment for a pull request
Retrieves a specific pull request review comment by its ID, provided the repository exists, is accessible, and the comment ID is valid.
Get a review for a pull request
Retrieves a specific review for a pull request using its owner, repository, pull request number, and review ID.
Get a secret for the authenticated user
Retrieves metadata (name, timestamps, visibility; not the value) for a specific, existing development environment secret associated with the authenticated user's GitHub Codespaces.
Get a self hosted runner for an organization
Retrieves detailed information about a specific self-hosted runner registered within a GitHub organization.
Get a self hosted runner for a repository
Gets a specific self-hosted runner for a repository by its unique ID.
Get a tag
Retrieves detailed information for a specific Git tag object from a GitHub repository, using the SHA of the tag object itself.
Get a team by name
Retrieves a GitHub team by its slug from a specific organization.
Get a thread
Retrieves a specific GitHub notification thread using its unique `thread_id`.
Get a thread subscription for the authenticated user
Retrieves the authenticated user's subscription details for a specific notification thread, identified by `thread_id`.
List repository files and directories
Browse a GitHub repository's tree at a specified branch, tag, commit or tree SHA. Recursive mode lists nested entries in one request, but results can be truncated; check the returned truncation flag.
Get a user
Retrieves the public profile information for an existing GitHub user, specified by their username.
Get a webhook configuration for an organization
Retrieves the configuration for a specific webhook associated with a GitHub organization.
Get a webhook configuration for a repository
Returns the configuration for an existing webhook on the specified repository.
Get a webhook delivery for an organization webhook
Returns detailed information for a specific delivery attempt of a webhook configured for the specified GitHub organization.
Get a workflow
Retrieves detailed information for a specific GitHub Actions workflow in a repository, identified by either its numeric ID or its filename.
Get a workflow run
Gets a specific workflow run by its ID from a GitHub repository.
Get a workflow run attempt
Retrieves detailed information for a specific attempt of a workflow run in a GitHub repository, including its status, conclusion, and timings.
Get billing usage report for user
Retrieves the billing usage report for a specified GitHub user. Use when you need to analyze billing costs and usage patterns.
Get branch protection
Retrieves branch protection settings for a specific accessible branch in a GitHub repository, such as required status checks, review requirements, and push restrictions. Availability varies by GitHub product plan; fine-grained tokens require repository Administration read permission. The branch name cannot contain wildcards.
Get catalog models
Tool to retrieve the list of AI models available in the GitHub Models catalog. Use when you need to discover available models, their capabilities, token limits, and supported modalities.
Get a check run
Retrieves detailed information for a specific check run within a GitHub repository.
Get a check suite
Retrieves a specific check suite (a collection of check runs) by its ID from a repository accessible to the authenticated user.
Get a classroom
Closed: the GitHub Classroom API is no longer available as of August 28, 2026, following the GitHub Classroom sunset. This action remains registered for compatibility.
Get a CodeQL database for a repository
Gets an existing CodeQL database (including a download URL) for a specified language in an accessible repository, if one has been successfully built for that language.
Get a codespace for the authenticated user
Call to retrieve detailed information for a `codespace_name` belonging to the authenticated user, ensuring the codespace exists and is accessible.
Get a code of conduct
Retrieves the full details of a specific GitHub code of conduct using its unique key.
Get Code of Conduct (GraphQL)
Tool to look up a code of conduct by its key using GitHub's GraphQL API. Use when you need to fetch code of conduct details as part of a GraphQL workflow.
Get a code scanning alert
Retrieves a specific code scanning alert, which identifies potential code vulnerabilities or errors, by its number from the specified GitHub repository.
Get a code scanning analysis for a repository
Retrieves detailed information for a specific code scanning analysis on an accessible repository, identified by its `analysis_id`.
Get a code scanning default setup configuration
Gets the default setup configuration for code scanning in a repository, including state, languages, query suite, and schedule for a repository if it exists.
Get commit authors
Fetches commit authors identified during a repository import, used to map authors from an external VCS to GitHub accounts. NOTE: This endpoint has been deprecated by GitHub as of April 12, 2024, and is no longer available. The Source Imports REST API has been retired due to very low usage levels. Please use the GitHub Importer tool at https://github.com/new/import for repository imports.
Get a commit comment
Retrieves the full details of a specific commit comment in a GitHub repository, using its unique identifier.
Get a commit object
Retrieves detailed information (including author, committer, message, tree, parents, verification) for a specific commit in a GitHub repository, identified by its SHA.
Get commit signature protection
Gets the commit signature protection status for a branch in a repository.
Get commit statuses
Lists a page of statuses for a commit reference (SHA, branch, or tag) in reverse chronological order, for checking CI/CD results from various systems.
Get community profile metrics
Retrieves a repository's community profile metrics, including health percentage and the presence of key community files (e.g., README, LICENSE).
Get contextual information for a user
Gets contextual hovercard information for a GitHub user; `subject_type` and `subject_id` can be jointly provided for more specific details.
Get a custom deployment protection rule
Retrieves a specific custom deployment protection rule (used by GitHub Apps for external validation or manual approval of deployments) for a given environment in a repository.
Get default attributes for a codespace
Get pre-flight data (e.g., default location, devcontainer path) for creating a Codespace in a given repository (must exist and be accessible), optionally for a specific Git ref.
Get default workflow permissions for an organization
Gets the default GITHUB_TOKEN workflow permissions and settings for a GitHub organization.
Get default workflow permissions for a repository
Gets the default workflow permissions (`read` or `write`) for the GITHUB_TOKEN and whether it can approve pull request reviews in an existing and accessible repository.
Get Dependabot alert
Get one Dependabot vulnerability alert for a repository.
Get a diff of the dependencies between commits
Gets the dependency diff between two Git revisions in a repository, where 'basehead' specifies the revisions and 'name' can optionally scope to a specific manifest file.
Get a deployment
Gets a specific deployment by ID from a repository, provided the repository and deployment ID exist.
Get a deployment branch policy
Retrieves a specific deployment branch policy for an environment in a repository, identified by its unique ID.
Get a deployment status
Retrieves a specific deployment status by its ID for a given deployment within a GitHub repository.
Get a deploy key
Gets a specific deploy key, identified by its `key_id`, for the GitHub repository specified by `owner` and `repo`.
Get details about a codespace export
Retrieves detailed information about a specific export of a codespace.
Get a discussion
The team discussions endpoint used by this action has been retired. Use GitHub Discussions instead.
Get a discussion comment
The team discussion comments endpoint used by this action has been retired. Use GitHub Discussions instead.
Get emojis
Lists all emojis available for use on GitHub, including custom and Unicode emojis.
Get Enterprise Member Invitation
Tool to look up a pending enterprise unaffiliated member invitation by invitee and enterprise. Use when you need to check the status of a specific invitation.
Get feeds
Fetches a list of available GitHub feed URLs for the authenticated user.
Get a gist
Fetches a GitHub gist by ID, including its files and metadata. File contents or the file list may be truncated; use the raw file URL or clone the gist to retrieve complete content when needed.
Get a gist comment
Retrieves a specific GitHub Gist comment using the gist ID and comment ID, returning its text, author information, and timestamps.
Get a gist revision
Retrieves a specific revision of a gist.
Get GitHub Actions cache usage for an organization
Retrieves total GitHub Actions cache usage for an organization, including active cache count and size across its repositories. Usage data refreshes approximately every five minutes and may lag changes.
Get github actions cache usage for a repository
Retrieves the total count of active GitHub Actions caches and their combined size in bytes for a specified repository.
Get github actions permissions for an organization
Gets the GitHub Actions permissions for a specified organization, detailing repository enablement and allowed actions policies.
Get GitHub Actions permissions for a repository
Gets the GitHub Actions permissions policy for a repository, including its enabled status and the scope of allowed actions.
Get billing premium request usage
Tool to get billing premium request usage report for a GitHub user. Use when you need to retrieve usage data for premium features like Copilot or AI models.
Get billing usage summary for user
Tool to retrieve billing usage summary for a GitHub user account. Use when tracking usage costs, monitoring billing details, or generating usage reports for a specific user. Note: This endpoint only returns data for the past 24 months and is currently in public preview.
Get github meta information
Fetches GitHub's publicly available metadata, useful for configuring network security policies or IP allow-listing.
Get github pages build
Retrieves detailed information about a specific GitHub Pages build for a repository, which must have GitHub Pages enabled.
Get a gitignore template
Retrieves a specific .gitignore template from GitHub by its name, which must be an existing template in GitHub's collection.
Get a global security advisory
Retrieve a global GitHub security advisory by its GHSA identifier. Use this to get detailed information about vulnerabilities including severity, affected packages, CVSS scores, and references.
Fetch GraphQL Node
Fetch a GitHub GraphQL node by its global ID. By default, only its ID is requested; supply a GraphQL fragment to retrieve additional fields.
Get GraphQL rate limit
Tool to retrieve the authenticated client's GitHub GraphQL API rate limit information. Use when you need to check remaining quota, current usage, or reset time for GraphQL requests.
Get GitHub-owned images for GitHub-hosted runners in an organization
Get the list of GitHub-owned images available for GitHub-hosted runners for an organization.
Get information about a sarif upload
Retrieves detailed information, including processing status and results URL, about a specific SARIF (Static Analysis Results Interchange Format) upload for a repository, uniquely identified by its sarif_id.
Get interaction restrictions for an organization
Retrieves interaction restrictions for an organization, showing which GitHub user types can interact with its public repositories and when restrictions expire; returns an empty response if no restrictions are set.
Get interaction restrictions for a repository
Retrieves active interaction restrictions for a repository, detailing which user groups are limited from activities like commenting or creating pull requests, and when these restrictions expire.
Get interaction restrictions for public repositories
Retrieves currently active interaction restrictions for the authenticated user's public repositories.
Get issue comments
Retrieves a page of comments for a specific GitHub issue. Comments can be filtered by update time and paginated to view discussion history.
Get a label
Retrieves a specific label by its name from a specified GitHub repository.
Get large files
Lists files larger than 100MB identified during a previous source import for the specified repository. NOTE: This endpoint has been deprecated by GitHub as of April 12, 2024, and is no longer available. The Source Imports REST API has been retired due to very low usage levels. Please use the GitHub Importer tool at https://github.com/new/import for repository imports.
Get latest pages build
Retrieves information about the most recent GitHub Pages build for a repository, which must exist, be accessible, have GitHub Pages enabled, and have at least one prior build.
Get a license
Call this action to retrieve comprehensive details for a specific software license recognized by GitHub, using its unique license key.
Get License (GraphQL)
Tool to look up an open source license by its SPDX ID using GitHub's GraphQL API. Use when you need to fetch license details for compliance tracking or repository setup.
Get octocat
Fetches an ASCII art representation of GitHub's Octocat, suitable for text-based displays.
Customize OIDC subject claim template
Retrieves the OpenID Connect (OIDC) subject claim customization template for a repository's GitHub Actions workflows. The validated response has no declared template fields.
Get organization audit log
Tool to retrieve an organization's audit log events for security and compliance investigations. Use when tracking organizational changes, security audits, or compliance monitoring. Requires organization owner permissions and read:audit_log scope.
Get a custom property for an organization
Retrieves the definition (schema) of a specific, existing custom property for an organization.
Get organization membership for user
Return a named user's membership state and role in a GitHub organization.
Get organization project item
Tool to get an item from an organization-owned GitHub Projects V2 project. Use when you need to retrieve details about a specific project item including its content, fields, timestamps, and creator information.
Get organization public key for Codespaces secrets
Retrieves an organization's public key, which must be used to encrypt secret values before they are configured for Codespaces.
Fetch Public Key For Secret Encryption
Retrieves the public key for an existing GitHub organization, required for encrypting Dependabot secrets. Requires admin:org scope.
Get organization teams
Retrieves a list of teams for a specified GitHub organization. Use this action when you need to list all teams, find team information, or explore team structure within an organization. Requires read:org scope and returns paginated results.
Get allowed actions and workflows for an org
Gets the list of allowed actions and reusable workflows for an organization when the 'allowed_actions' policy is set to 'selected'.
Get org dev environment secret safely
Retrieves metadata for a specific secret available to an organization's GitHub Codespaces without exposing its encrypted value.
Get custom OIDC subject claim template
Retrieves the OpenID Connect (OIDC) subject claim customization template for a GitHub organization, which defines how the `sub` claim in OIDC tokens for workflows is constructed.
Get a dns health check for github pages
Retrieves the DNS health check status (e.g., CNAME/A records, HTTPS) for a GitHub Pages site; the check may be pending (HTTP 202) on initial calls or after site changes.
Get a GitHub Pages site
Retrieves information for a GitHub Pages site, which must be enabled for the repository.
Get page views
Retrieves page view statistics for a repository over the last 14 days, including total views, unique visitors, and a daily or weekly breakdown.
Get parent issue
Retrieve the parent issue of a GitHub sub-issue.
Get pending deployments for a workflow run
Retrieves pending deployment environments for a specific workflow run that are awaiting approval due to protection rules.
Get project permission for a user
The Projects (classic) collaborator endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for this collaborator permission endpoint.
Get public key for secret encryption
Retrieves a repository's public key for encrypting GitHub Codespaces secrets. For private repositories, classic OAuth or personal access tokens need the repo scope; fine-grained tokens need write permission for repository Codespaces secrets.
Get public key for the authenticated user
Retrieves the authenticated user's public key for encrypting GitHub Codespaces secrets. The returned key must be used with libsodium sealed box encryption before creating or updating secrets via the API.
Get Pull Requests
Retrieves a page of pull requests from a repository, optionally filtered by state, base branch, or head branch and sorted by the selected order. Returns pull request details including title, state, author, labels, timestamps, and branch information.
Get pull request review protection
Retrieves the pull request review protection settings for a specific branch in a GitHub repository, if such protection is configured.
Get rate limit status for the authenticated user
Retrieves the authenticated user's current GitHub API rate limit status, including usage and limits across different resource categories.
Get Raw Repository Content
Fetches raw file content from a GitHub repository as a downloadable file, without parsing or validating its format. Ensure owner, repo, ref, and path are consistent when combining with other GitHub tools.
Get repository clones
Retrieves the total number of clones and a breakdown of clone activity (daily or weekly) for a specified repository over the preceding 14 days.
Get repository content
Retrieves a file's Base64-encoded content or lists a directory's contents in a GitHub repository. Specify a branch, tag, or commit to read from, or use the repository's default branch; an empty path lists the root directory.
Get repository Discussion thread
Reads one repository Discussion with cursor-paginated top-level comments and up to the requested first replies for each comment.
Get Repository via GraphQL
Tool to lookup a repository by owner and name using GitHub's GraphQL API. Use when you need comprehensive repository information.
Get Repository Owner
Tool to lookup a repository owner (User or Organization) by login using GitHub's GraphQL API. Use when you need to determine whether a login is a user or organization and retrieve basic profile information.
Get repository permissions for a user
Retrieves a user's repository permission and assigned role, including custom roles. The legacy permission level is admin, write, read, or none; maintain maps to write and triage to read.
Retrieve repo public key for encryption
Gets a repository's public key, used to encrypt secrets for Dependabot.
Get repository secret securely
Retrieves metadata for an existing Dependabot secret in a repository, without exposing its encrypted value.
Get repository security advisory
Tool to retrieve a repository security advisory using its GHSA identifier. Use when you need detailed information about a specific security vulnerability.
Get repository star history
Gets one page of up to 30 privacy-safe weekly star-count records, newest first. Increase `page` to move backward in a repository's history.
Get a delivery for a repository webhook
Retrieves a specific delivery for a repository webhook, identified by its `hook_id` and `delivery_id`.
Get repository attestations
Tool to retrieve attestations by subject digest from a GitHub repository. Use when you need to verify or check attestations for a specific artifact identified by its SHA256 digest.
Get allowed actions and workflows for a repository
Gets the settings for allowed actions and reusable workflows in a repository. Requires the repository's `allowed_actions` policy to be set to `selected` (returns 409 if set to `all` or `local_only`).
Get repository development environment secret
Gets metadata (name, creation/update timestamps) for a specific, existing development environment secret (Codespaces secret) in a repository, without exposing its value.
Get rules for a branch
Retrieves a page of active rules for a specific branch in a GitHub repository, excluding rules in 'evaluate' or 'disabled' status.
Get Organization Dependabot Secret
Gets a single organization Dependabot secret's metadata (name, timestamps, visibility) without revealing its encrypted value. Requires admin:org scope.
Get status checks protection
Retrieves the status check protection settings for a specific branch in a GitHub repository, if status check protection is enabled for it.
Get teams with access to the protected branch
Lists teams with explicit push access to a protected branch. A 404 response is returned as an empty teams list, which can also reflect a missing branch or absent branch protection.
Get team members
Retrieves one page of members for a specific team within an organization, including members of child teams, optionally filtered by role. Requires the authenticated user to have read access to the team.
Get team membership for a user
Retrieves a user's role and membership status in a GitHub organization team. A successful lookup returns the role and state; is_member=False can also indicate access denial or a missing team or organization, not just non-membership.
Get the authenticated user
Gets the profile information for the currently authenticated GitHub user, including potentially private details based on user settings.
Get the combined status for a specific reference
Retrieves the combined commit status and status entries for a specific reference (SHA, branch, or tag) in a GitHub repository.
Get the hourly commit count for each day
Retrieves the 'punch card' data, showing hourly commit counts for each day of the week for an existing and accessible repository.
Get the last year of commit activity
Fetches weekly commit totals and daily commit counts for the last 52 weeks for a specified GitHub repository.
Get the latest release
Fetches the latest official (non-prerelease, non-draft) release for a GitHub repository; requires at least one such published release.
Get the license for a repository
Retrieves the license file and its details for a repository, optionally from a specific Git reference (branch, tag, or commit SHA).
Get the review history for a workflow run
Retrieves the detailed approval history for a specific workflow run in a GitHub repository, detailing each review's environment, state, reviewer, and comments, to track the approval process for workflows, particularly automated deployments.
Get the status of a GitHub Pages deployment
Retrieves the status of a specific GitHub Pages deployment for a repository, which must have GitHub Pages enabled.
Get the weekly commit activity
Fetches the weekly commit activity (additions and deletions per week) for a repository over the past year; best for repositories with under 10,000 commits.
Get the weekly commit count
Retrieves the weekly commit count for a repository, detailing commits by the owner and all contributors over the last 52 weeks; GitHub may return a 202 status or an empty response if statistics are being computed.
Get the Zen of GitHub
Retrieves a random quote from GitHub's 'Zen of GitHub' collection, reflecting GitHub's design philosophies and offering humorous insights, useful for displaying GitHub wisdom or a lighthearted message.
Get top referral paths
Fetches the top 10 most viewed content paths for a repository from the last 14 days.
Get top referral sources
Fetches the top 10 websites that referred traffic to a repository within the last 14 days.
Get user attestations by subject digest
Retrieves attestations for a GitHub user and subject digest, with optional predicate filtering and pagination. A GitHub 404 is returned as an empty attestation list.
Get user's projects v2
Tool to list GitHub Projects v2 for a specified user. Use when you need to retrieve all projects owned by a user with pagination support.
Get users with access to the protected branch
Lists users with explicit push access to a protected branch through its push restrictions. A 404 response is returned as an empty user list, including when the branch or repository is inaccessible or missing.
Get user by ID
Retrieves a GitHub user's profile information by their unique numeric account ID. Use when you know the user's numeric ID rather than their username.
Get user project item
Tool to get an item from a user-owned project in GitHub Projects V2. Use when you need to retrieve details about a specific item (issue, pull request, or draft issue) in a user's project board.
Get Viewer via GraphQL
Tool to retrieve the authenticated user's profile information via GitHub GraphQL. Use when working with GraphQL queries or need viewer details in GraphQL format.
Get workflow external access level
Gets the access level settings for a private repository, determining how workflows outside this repository can use its actions and reusable workflows.
Get a job for a workflow run
Retrieves detailed information for a specific job within a GitHub Actions workflow run, given its `job_id` which must be valid for the specified repository's workflow.
Get workflow run usage
Gets the billable time, in milliseconds, for a specific workflow run, detailing time spent on various operating systems.
Get workflow usage
Gets the billable time (in milliseconds, broken down by runner OS) for a specific workflow within a repository for the current billing cycle.
Create a hosted compute network configuration for an organization
Creates a hosted compute network configuration for an organization. OAuth app tokens and personal access tokens (classic) need the `write:network_configurations` scope to use this endpoint.
Delete a hosted compute network configuration from an organization
Deletes a hosted compute network configuration from an organization. OAuth app tokens and personal access tokens (classic) need the `write:network_configurations` scope to use this endpoint.
Get a hosted compute network configuration for an organization
Gets a hosted compute network configuration configured in an organization. OAuth app tokens and personal access tokens (classic) need the `read:network_configurations` scope to use this endpoint.
Get a hosted compute network settings resource for an organization
Gets a hosted compute network settings resource configured for an organization. OAuth app tokens and personal access tokens (classic) need the `read:network_configurations` scope to use this endpoint.
List hosted compute network configurations for an organization
Lists all hosted compute network configurations configured in an organization. OAuth app tokens and personal access tokens (classic) need the `read:network_configurations` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Update a hosted compute network configuration for an organization
Updates a hosted compute network configuration for an organization. OAuth app tokens and personal access tokens (classic) need the `write:network_configurations` scope to use this endpoint.
Get pull request creation cap bypass list for a repository
Lists the users that are on the pull request creation cap bypass list for a repository. Users on this list can create pull requests regardless of any configured pull request creation cap. Only users with maintainer permissions can view the bypass list.
Get pull request creation cap for an org
Gets the pull request creation cap configuration for an organization. The cap limits the total number of open pull requests a user can have across all public repositories in the organization at one time. Only users with admin access to the organization can view the cap configuration.
Get pull request creation cap for a repository
Gets the pull request creation cap configuration for a repository. The cap limits the number of open pull requests a user can have at one time. Only users with admin access to the repository can view the cap configuration.
Remove users from the pull request creation cap bypass list for a repository
Removes users from the pull request creation cap bypass list for a repository. Removed users will be subject to any configured pull request creation cap. Only users with maintainer permissions can modify the bypass list. You can remove a maximum of 100 users per request.
Add users to the pull request creation cap bypass list for a repository
Adds users to the pull request creation cap bypass list for a repository. Users on this list can create pull requests regardless of any configured pull request creation cap. Only users with maintainer permissions can modify the bypass list. You can add a maximum of 100 users per request. The bypass list can only hold a maximum of 100 users.
Update pull request creation cap for an org
Updates the pull request creation cap for an organization. The cap limits the total number of open pull requests a user can have across all public repositories in the organization at one time. Only users with admin access to the organization can configure the cap.
Add issue field values to an issue
Add custom field values to an issue. You can set values for issue fields that have been defined for the repository's owner. Adding an empty array will clear all existing field values for the issue. This endpoint supports the following field data types: - **`text`**: String values for text fields - **`single_select`**: Option names for single-select fields (must match an existing option name) - **`number`**: Numeric values for number fields - **`date`**: ISO 8601 date strings for date fields Only users with push access to the repository can add issue field values. If you don't have the proper permissions, you'll receive a `403 Forbidden` response. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the
Add a related issue
You can use the REST API to mark an issue as related to another issue. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see [Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits) and [Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api). This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from
Add sub-issue
You can use the REST API to add sub-issues to issues. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from the
Approve an issue suggestion
Approves a pending suggestion on an issue. Applies the proposed change (creating the corresponding timeline event), transitions the suggestion to `approved`, and dismisses any competing pending suggestions for the same change. Requires triage access to the repository. Approving a suggestion also requires permission to perform the change it applies (for example, setting the issue type, adding a label or assignee, or closing the issue); this only affects fine-grained access tokens and GitHub Apps whose permissions are narrower than the triage role. This endpoint only supports issues, not pull requests.
Create an issue artifact
Creates an artifact attached to an issue. The artifact type defaults to `generic` when omitted. Creating an artifact requires permission to update the issue. The request can return `403` if the repository is read-only or locked, or a GitHub App installation has only `issues: read` permission. To create an HTML artifact, set `type` to `embedded_html` and provide the HTML source in `body`. Open the returned `html_url` to inspect the source, then select **Preview** to view the rendered artifact. Select **Show source** to return to the HTML source.
Delete an issue artifact
Permanently deletes an artifact attached to an issue. Deleting an artifact requires permission to update the issue. The request can return `403` if the repository is read-only or locked, or a GitHub App installation has only `issues: read` permission.
Delete an issue field value from an issue
Remove a specific custom field value from an issue. Only users with push access to the repository can delete issue field values. If you don't have the proper permissions, you'll receive a `403 Forbidden` response. If the specified field does not have a value set on the issue, this operation will return a `404` error. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
Dismiss an issue suggestion
Dismisses a pending suggestion on an issue. Transitions the suggestion to `dismissed` without applying any change or creating a timeline event. Requires triage access to the repository. This endpoint only supports issues, not pull requests.
Get an issue artifact
Returns an artifact attached to an issue by its per-issue artifact number, along with its version history ordered from newest to oldest. This endpoint can be used without authentication for public repositories. Unauthenticated requests are subject to the standard unauthenticated rate limit. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get parent issue
You can use the REST API to get the parent issue of a sub-issue. This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
List issues assigned to the authenticated user
List issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not necessarily assigned to you. > [!NOTE] > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint. This endpoint supports the following custom media types. For more information, see "[Media Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List user account issues assigned to the authenticated user
List issues across owned and member repositories assigned to the authenticated user. > [!NOTE] > GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue artifacts
Lists artifacts attached to an issue. Results are ordered by artifact number. This endpoint can be used without authentication for public repositories. Unauthenticated requests are subject to the standard unauthenticated rate limit. The `type` parameter filters the response to artifacts of one type. Results can be requested by page. The page defaults to `1`; the page size defaults to `30` and can be set from `1` to `100`. The response is a bare array and does not include pagination metadata such as a `Link` header, a total count, or the service's `has_next_page` signal. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue field values for an issue
Lists all issue field values for an issue. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issues related to an issue
You can use the REST API to list the issues that are related to an issue. This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List sub-issues
You can use the REST API to list the sub-issues on an issue. This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's Markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue suggestions
Lists the suggestions on an issue. A suggestion is an agent-proposed change to an issue's type, labels, fields, assignees, or closed state that a maintainer can approve or dismiss. By default only pending suggestions are returned. Use `state=all` to return suggestions in every state, or `state=<state>` to filter to a single state. Use `action=<action>` to return only suggestions for a specific change. This endpoint is only available while the issue suggestions feature is enabled for the repository, and only supports issues, not pull requests. Requires triage access to the repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Pin an issue comment
You can use the REST API to pin comments on issues. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
Remove dependency an issue is blocked by
You can use the REST API to remove a dependency that an issue is blocked by. Removing content too quickly using this endpoint may result in secondary rate limiting. For more information, see [Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits) and [Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api). This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass a specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered
Remove a related issue
You can use the REST API to remove a 'relates to' relationship between two issues. Removing content too quickly using this endpoint may result in secondary rate limiting. For more information, see [Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits) and [Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api). This endpoint supports the following custom media types. For more information, see [Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). - **`application/vnd.github.raw+json`**: Returns the raw Markdown body. Response will include `body`. This is the default if you do not pass any specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the Markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML
Remove sub-issue
You can use the REST API to remove a sub-issue from an issue. Removing content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass a specific media type. - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. - **`application/vnd.github.html+json`**: Returns HTML rendered from
Reprioritize sub-issue
You can use the REST API to reprioritize a sub-issue to a different position in the parent list.
Set issue field values for an issue
Set custom field values for an issue, replacing any existing values. You can set values for issue fields that have been defined for the repository's owner. This endpoint supports the following field data types: - **`text`**: String values for text fields - **`single_select`**: Option names for single-select fields (must match an existing option name) - **`number`**: Numeric values for number fields - **`date`**: ISO 8601 date strings for date fields This operation will replace all existing field values with the provided ones. If you want to add field values without replacing existing ones, use the `POST` endpoint instead. Only users with push access to the repository can set issue field values. If you don't have the proper permissions, you'll receive a `403 Forbidden` response. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in
Unpin an issue comment
You can use the REST API to unpin comments on issues.
Update an issue artifact
Updates the name, body, or both for an artifact attached to an issue. Updating an artifact requires permission to update the issue. The request can return `403` if the repository is read-only or locked, or a GitHub App installation has only `issues: read` permission.
Check if repo starred by auth user
Use to determine if the authenticated user has starred a specific GitHub repository, which is confirmed by an HTTP 204 status (resulting in an empty dictionary in the response data); the action fails (e.g., HTTP 404) if the repository is not starred or does not exist.
List accepted assignments for an assignment
Closed: the GitHub Classroom API is no longer available as of August 28, 2026, following the GitHub Classroom sunset. This accepted-assignments action remains registered for compatibility. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories accessible via GitHub App installation
Lists repositories that the authenticated user can access through a specific GitHub App installation. Returns repositories where the user has explicit :read, :write, or :admin permission through the installation. The response includes permission details for each repository. Prerequisites: - Requires a GitHub App user access token (not a standard OAuth token) - Use GITHUB_LIST_APP_INSTALLATIONS first to get valid installation IDs Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get apps with access to the protected branch
Lists GitHub Apps with push access to a repository's protected branch. A 404 returns no app list and an explanatory message; it can indicate a missing branch or unavailable restrictions.
List app installations for user token
Lists a page of GitHub App installations accessible to the authenticated user, including installation details, permissions, and repository access. Supports page and page-size selection and returns the total count of accessible installations. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List artifacts for a repository
Lists GitHub Actions workflow artifacts for a specified repository, which must exist. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List assignees
Lists users who can be assigned to issues in a repository, typically those with push access. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List assignments for a classroom
Closed: the GitHub Classroom API is no longer available as of August 28, 2026, following the GitHub Classroom sunset. This action remains registered for compatibility. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List attestation repositories
Tool to list attestation repositories for an organization. Use when you need to discover which repositories in an organization have attestations. Attestations provide verifiable metadata about software artifacts.
List authenticated user SSH keys
List public Git SSH keys owned by the connected GitHub user.
List available machine types for a repository
Lists machine types available for GitHub Codespaces in a repository, optionally using a Git ref to check compatibility based on prebuild availability and devcontainer configurations.
List branches
Lists a page of branches in a GitHub repository, optionally filtered by protection status. Returns branch names, commit information, and protection status.
List branches for head commit
Lists branches in an accessible repository where the provided commit SHA is the head, useful for identifying development lines based on that commit.
List check runs for a git ref
List GitHub check runs for a commit SHA, branch, or tag to assess CI status and conclusions. Results default to the latest runs; the filter can be set to include all runs.
List check runs in a check suite
Lists check runs for a specific check suite in a GitHub repository, optionally filtering by check name or status. Results default to the latest runs; the filter can be set to include all runs. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List check run annotations
Lists annotations for a specific check run in a GitHub repository, detailing issues like errors or warnings on particular code lines. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List check suites for a git reference
Lists check suites for a Git reference (commit SHA, branch, or tag) in a repository, optionally filtering by GitHub App ID or check run name. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List child teams
Lists the immediate child teams of a parent team within an organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List classrooms
Closed: the GitHub Classroom API is no longer available as of August 28, 2026, following the GitHub Classroom sunset. This action remains registered for compatibility. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List codeowners errors
Lists syntax errors in a repository's CODEOWNERS file, which must be located at the root, `.github/`, or `docs/` directory for the specified ref.
List CodeQL databases for a repository
Lists all CodeQL databases for a repository where CodeQL analysis has been previously run and completed.
List codespaces for a user in organization
Lists a page of GitHub Codespaces for a specified member of an organization, with pagination controls.
List codespaces for the authenticated user
Lists GitHub Codespaces for the authenticated user, optionally filtering by repository ID and supporting pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List codespaces for the organization
Lists active/pending GitHub Codespaces for an existing organization; admins list all, members list their own. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all codes of conduct
Retrieves all available codes of conduct from GitHub, often used to select one for a repository.
List Codes of Conduct (GraphQL)
Tool to fetch all available codes of conduct using GitHub's GraphQL API. Use when you need to retrieve the complete list of codes of conduct that can be applied to repositories.
List code scanning alerts for an organization
Lists code scanning alerts for a GitHub organization; use either tool name or tool GUID when filtering by tool. Some access or scanning errors return an empty alert list with a message. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List code scanning alerts for a repository
Lists code scanning alerts for a repository, optionally filtering by tool, Git reference, state, or severity. Some scanning or authorization errors return an empty alert list with a message rather than an error. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List code scanning analyses for a repository
Lists code scanning analyses for a repository, optionally filtering by tool, Git reference, or SARIF ID. Some scanning and access errors return an empty list without an explanatory message. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List comments for a pull request review
Lists a page of comments for a specific review on a GitHub pull request, with pagination support. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List comment changes across organization
Tool to list issue and PR comment changes across an organization's repositories efficiently. Use when monitoring comment activity without per-PR/per-issue polling. Filters organization events to return only comment-related events (IssueCommentEvent, PullRequestReviewCommentEvent, CommitCommentEvent). Note: Events are limited to the past 30 days and up to 300 events per timeline. Use ETag header for efficient polling to avoid rate limits.
List commits
Lists a page of commits for a GitHub repository, optionally filtered by SHA or branch, path, author, committer, or date range. The default page size is one commit. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List commits on a pull request
Lists commits for a pull request; requires the repository and pull request to exist and be accessible, and supports pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List commit comments
Retrieves a page of comments for a specific commit in a GitHub repository, supporting pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List commit comments for a repository
Lists a page of commit comments for an accessible GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all commonly used licenses
Retrieves a list of commonly used software licenses from GitHub, optionally filtering for 'featured' licenses whose specific selection criteria by GitHub may vary. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all custom properties for an organization
Gets the schema definitions for an organization's custom properties, rather than repository-specific values. On non-200 responses, it returns an empty property list alongside an error and status code.
Get all custom property values for a repository
Gets all custom property values for a repository. Custom properties are defined at the organization level, so this endpoint works with organization-owned repositories. Returns an empty array if no custom properties are set.
List custom property values for organization repositories
Lists repositories in an organization with their custom property values. Requires 'Custom properties' organization permission (read). Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List deliveries for an organization webhook
Retrieves a list of webhook deliveries for a specific webhook in an organization, allowing inspection of delivery history and details.
List deliveries for a repository webhook
Retrieves delivery attempts for a specific repository webhook to inspect its history; ensure the webhook ID exists.
List deployments
Lists deployments for a specified repository; repository must exist. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List deployment branch policies
Lists a page of deployment branch policies for a specified environment in a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List deployment statuses
Lists a page of statuses for a given deployment in a repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List deploy keys
Lists deploy SSH keys for a specified repository; the repository must exist. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List discussions
The team discussions endpoint used by this action has been retired. Use GitHub Discussions instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List discussion comments
The team discussion comments endpoint used by this action has been retired. Use GitHub Discussions instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List email addresses for the authenticated user
Lists a page of email addresses for the authenticated user, including their primary status, verification status, and visibility.
List environments
Retrieves a page of deployment environments for a specified repository, which are used to configure protection rules and secrets for different software lifecycle stages. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List environment custom deployment rules
Lists a page of custom deployment protection rule integrations available for a GitHub repository environment. The caller must have repository admin or owner permissions; pagination supports up to 100 results per page. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List environment secrets
Lists the names and metadata (not values) of secrets for a specified, existing environment within an existing GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List environment variables
Lists a page of plaintext GitHub Actions environment variables for a specified environment within a repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List events for the authenticated user
Lists public events for the specified GitHub user, or private events if authenticated as that user, in reverse chronological order.
List events for user
Lists events performed by a GitHub user in reverse chronological order. If authenticated as the specified user, you will see private events; otherwise, only public events are returned. Use this action when you need to retrieve a user's activity history, such as commits, pull requests, issues, and other GitHub actions.
List events received by the authenticated user
Lists events a specific GitHub user received from followed users and watched repositories; returns private events if authenticated for `username`, otherwise public.
List followers of a user
Lists followers for a specified, existing GitHub user. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List followers of the authenticated user
Lists users following the authenticated GitHub user, returning an empty list if the user has no followers. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List following for user
Lists the people that a GitHub user follows. Use this action when you need to retrieve the list of users that a specific GitHub user is following. The response includes public profile information for each followed user with pagination support.
List forks
Lists forks for a specified repository, which must exist, with options for sorting and pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List gists for a user
_lists public gists for a specified GitHub user._ Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List gists for the authenticated user
Lists gists for the authenticated user, with optional filtering by update time and pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List gist comments
Lists comments for a specified GitHub Gist.
List gist commits
Lists a page of commits for a specified gist, with pagination controls. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List gist forks
Lists a page of forks for a given GitHub gist ID, with pagination controls. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List github actions caches for a repository
Lists GitHub Actions caches for a repository, with options to filter by Git reference or cache key, and to sort and paginate results. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List GitHub Pages builds
Lists GitHub Pages builds for a repository; GitHub Pages must be enabled on the repository for builds to be listed. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all gitignore templates
Retrieves all available .gitignore template names from GitHub (e.g., 'Python', 'Node', 'Java'), used for generating .gitignore files.
List global security advisories
Lists GitHub's global security advisories, filterable by ID, type, ecosystem, severity, dates, and other attributes. The advisory type defaults to reviewed.
List GPG keys for a user
Tool to list GPG keys for a GitHub user. Use when you need to fetch the public GPG keys associated with a specific GitHub user account.
List installation requests for the authenticated app
Lists pending installation requests made by users or organizations for the authenticated GitHub App. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List instances of a code scanning alert
Lists a page of instances of a specific code scanning alert, optionally filtered by Git ref. Some access or repository-state errors are returned as an empty instance list with an explanatory message. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issues for user
Lists GitHub issues for the authenticated user across visible repositories, with filtering by user relationship, state, labels, an ISO 8601 `since` timestamp (YYYY-MM-DDTHH:MM:SSZ), and sorting options; pull requests are typically included.
List issue comments
Lists comments for a specified issue in a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue comments for a repository
Lists issue comments, including those on pull requests, for an accessible repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue dependencies blocked by
Lists a page of issues that block a specified GitHub issue.
List issue dependencies blocking
Tool to list dependencies an issue is blocking. Use when you need to see which issues are blocked by a specific issue.
List issue events
Retrieves a page of issue events for a specific issue within a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue events for a repository
Lists a page of issue events, such as closed, reopened, and assigned events, for a specified repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue types
List all issue types configured for a GitHub organization. Requires read:org scope for OAuth tokens.
List jobs for a workflow run
Lists jobs for a specific workflow run in a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List jobs for a workflow run attempt
Lists jobs, including details like ID, status, and steps, for a specific attempt of a GitHub Actions workflow run. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List labels for an issue
Lists a page of labels for a specified issue in a GitHub repository, with pagination controls. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List labels for a repository
Lists labels for a specified GitHub repository, with pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List labels for a self-hosted runner for a repository
Lists all labels assigned to a specific self-hosted runner registered with the given repository.
List labels for issues in a milestone
Lists a page of labels for issues within a specific milestone in a repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List labels for a self-hosted runner for an organization
Lists all labels assigned to a specific self-hosted runner within a GitHub organization, which are used to route workflows.
List Licenses (GraphQL)
Tool to fetch all known open source licenses using GitHub's GraphQL API. Use when you need to retrieve the complete list of licenses that can be applied to repositories.
List machine types for a codespace
Lists available machine types for a specific, accessible codespace, enabling it to be transitioned to a new hardware configuration.
List matching references
Lists a page of Git references, such as branches or tags, in a repository that start with the provided partial reference path. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List milestones
Lists milestones, which track progress for groups of issues and pull requests, for an existing repository, allowing filtering by state and sorting. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List notifications for authenticated user
Tool to list notification threads for the authenticated user with efficient polling support. Use when you need to fetch the user's GitHub notification inbox with filters like unread/participating/since. Returns notification threads plus polling headers (Last-Modified, ETag, X-Poll-Interval) for efficient polling. IMPORTANT: This endpoint requires a Personal Access Token (classic) with 'notifications' or 'repo' scope. It does NOT work with GitHub App tokens or fine-grained personal access tokens. If the token type is incompatible, a clear error message will be returned.
List notifications for the authenticated user (Deprecated)
DEPRECATED: Use GITHUB_LIST_NOTIFICATIONS instead. Lists notifications for the authenticated user, sorted by most recent update, with filtering and pagination options. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organizations
Lists GitHub organizations for the authenticated user, sorted by ID in ascending order.
List organizations for a user
Lists public organizations for a specified GitHub user; the `username` must be a valid GitHub handle. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organizations for the authenticated user
Lists organizations the authenticated GitHub user is a member of, returning details for each organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organizations for a user
List a page of public organization memberships for a specified GitHub user, with pagination controls.
List organization app installations
List GitHub App installations across a named organization.
List org level codespaces secrets
Lists all Codespaces secrets available for a specified organization, which must exist. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization events for the authenticated user
Lists public events for the authenticated user's organization dashboard in a specified GitHub organization, such as pushes, pull requests, issues, and forks. The user must be an organization member to see events. Results are paginated; a 404 response is reported as an empty event list. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization members
List a page of members of a GitHub organization, optionally filtered by role or two-factor authentication status. Organization owners can filter by 2FA status to identify members who need to enable or upgrade their 2FA methods.
List organization memberships for authenticated user
List organization memberships for authenticated user
List organization projects
Lists projects (V2) for a specified GitHub organization, with optional search query and cursor-based pagination.
List organization repositories
Retrieves a list of repositories for a specified GitHub organization, allowing filtering by type and sorting. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all organization roles for an organization
Lists all custom organization roles for an existing GitHub organization.
List organization secrets
Lists GitHub Actions secrets available for a specified organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization variables
Lists a page of GitHub Actions variables for a specified organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization webhooks
Lists a page of webhooks for a specified GitHub organization, with pagination controls. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization fine-grained permissions
This organization fine-grained permissions endpoint has been retired. GitHub's current organization roles REST API does not document a direct replacement for listing the permissions available to custom roles.
List organization issues assigned to the authenticated user
Lists issues for the authenticated user within a specified GitHub organization, with options to filter by involvement type, state, labels, and to sort results. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List package versions for an organization package
Lists a page of versions for a specified package owned by a GitHub organization, filtered by active or deleted state. Defaults to active versions. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization project view items
Lists a page of items in a specific view of a GitHub organization's Projects V2 project, with their content, metadata, and field values. Returns pagination cursors when available.
List organization repositories with Github Actions enabled
Lists the selected repositories that are enabled for GitHub Actions in an organization. This endpoint only returns results when the organization's 'enabled_repositories' permission policy is configured to 'selected'. Requires admin:org scope and organization admin permissions. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List org resources with personal tokens
Lists requests from organization members to access organization resources with fine-grained personal access tokens (pending, approved, or denied). Note: This endpoint requires GitHub App authentication with 'organization_personal_access_token_requests:read' permissions; it cannot be used with personal access tokens. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List org resource access tokens
Lists approved fine-grained personal access tokens with access to a GitHub organization's resources, with optional filters; requires a GitHub App with read access to the organization's personal access tokens. Non-list API responses are returned as an empty token list. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization Dependabot secrets without values
Lists a page of Dependabot secret metadata for a specified organization, including names and creation and update timestamps, without secret values. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List outside collaborators for an organization
Lists outside collaborators for a GitHub organization, with options to filter (e.g., by 2FA status) and paginate results. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List owned package versions
Lists a page of versions for an existing package owned by the authenticated user, identified by its type and name. Results can be filtered by active or deleted state. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List packages for an organization
Lists GitHub Packages for an organization, noting specific interpretations for package_type and visibility parameters. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List packages for a user
Lists packages for a specified GitHub user, filterable by package type and visibility. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List packages for the authenticated user's namespace
Lists packages of a specific type and visibility within the authenticated user's namespace on GitHub. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List package versions for a package owned by a user
Lists a page of versions of a public package owned by a specified GitHub user, identified by package type, package name, and username. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List pending team invitations
Lists a page of pending membership invitations for a specified team within an organization, including invitee, role, and inviter details; total_count is the number returned on that page. The authenticated user must be an organization member with read:org scope. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List project cards (Classic - Deprecated)
The Projects (classic) card endpoint used by this action has been retired. Use the REST Projects v2 item endpoints instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List project collaborators (classic)
The Projects (classic) collaborator endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for listing project collaborators. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List project columns
The Projects (classic) column endpoint used by this action has been retired. Use the REST Projects v2 field and view endpoints instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List project fields for user
Tool to list all fields in a GitHub Projects V2 project for a specific user. Use when you need to see available fields in a project.
List project items for user
Lists a page of items, including issues, pull requests and draft issues, in a user-owned GitHub project. Supports cursor pagination and filtering.
List items for user project view
Tool to list items for a user's GitHub Projects (v2) view. Use when you need to retrieve items from a specific view of a user's project. Supports pagination and field filtering.
List public email addresses for the authenticated user
Lists the public email addresses for the authenticated user. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public events
Lists public GitHub events, which may be delayed by up to 5 minutes, with support for pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public events for a network of repositories
Retrieves public events (up to 90 days old, newest first) for a GitHub repository network, including the repository and its forks. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public events for a user
Retrieves a list of public events for a specified GitHub user, in reverse chronological order. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public events received by a user
Lists public events for a specified GitHub user (e.g., activities in repositories they watch or are involved in); the target user's profile must be public, and if blocked by the authenticated user, a 404 error is returned.
List public gists
Lists public gists from GitHub, optionally filtering by a 'since' timestamp and supporting pagination; results are generally newest first. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public keys for a user
Lists the verified public SSH keys for a specified GitHub user. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public organization events
Lists public events for a specified GitHub organization, which must exist. This action retrieves the events that are publicly accessible for the organization specified. It returns a paginated list of events with details about each event.
List public organization members
Lists users who have publicly declared their membership in a specified, existing GitHub organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List public repositories
Lists all public repositories on GitHub; use the `since` parameter with a repository ID from a previous result for pagination.
List pull requests
Lists pull requests for a GitHub repository. REQUIRES 'owner' AND 'repo' parameters - both are MANDATORY and must be provided in every call. Does NOT support filtering by assignee or date range - use GITHUB_FIND_PULL_REQUESTS instead for searching PRs by assignee, author, or across multiple repositories.
List pull requests associated with a commit
Lists pull requests for a commit; returns merged PRs that introduced the commit if on the default branch, or open PRs including the commit if on other branches. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List pull requests files
Lists a page of files changed in a specified GitHub pull request, including additions, modifications, and removals. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List reactions for an issue
Lists reactions for a specific, existing issue within an accessible GitHub repository, optionally filtering by content type.
List reactions for an issue comment
Lists reactions for a specific issue comment in a GitHub repository, optionally filtering by content type. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List reactions for a commit comment
Lists reactions for a specific commit comment; this is a read-only operation.
List reactions for a pull request review comment
Lists reactions for a pull request review comment in a repository, optionally filtering by reaction type. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List reactions for a release
Lists a page of reactions for a GitHub release, optionally filtered by reaction type. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List reactions for a team discussion
The team discussion reactions endpoint used by this action has been retired. Use GitHub Discussions instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List reactions for a team discussion comment
The team discussion comment reactions endpoint used by this action has been retired. Use GitHub Discussions instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List releases
Retrieves a page of releases for a specified repository, including published releases and available draft and prerelease versions. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List release assets
Lists assets (e.g., compiled binaries, source code archives) for a specific GitHub release, identified by `release_id` which must be valid for an existing release in the repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories
Lists repositories accessible to the authenticated user based on visibility, affiliation, and type filters. Returns repositories owned by the user, those they collaborate on, or those accessible through organization membership. Use this action when you need to retrieve a comprehensive list of repositories the authenticated user can access, with options to filter by visibility (public/private), affiliation (owner/collaborator/organization), or type. Supports pagination for large result sets.
List repos accessible to app installation
Lists repositories a GitHub App installation can access. IMPORTANT: This endpoint requires a GitHub App installation access token (ghs_* prefix) for authentication. OAuth/user access tokens (gho_*) or personal access tokens are not supported and will result in a 403 Forbidden error. Returns 'total_count' and 'repositories' array with pagination support. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories for a user
Lists public repositories for a specified GitHub user, who must have an existing account. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories for the authenticated user
Lists repositories for the authenticated user; using 'type' with 'visibility' or 'affiliation' API parameters (not in this model) can cause a 422 error. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories starred by a user
Lists repositories a valid and existing GitHub user has starred.
List repositories starred by the authenticated user
Lists repositories starred by the authenticated user, with sorting and pagination options. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories watched by a user
Lists repositories a given GitHub user is watching; the username must be a valid and existing GitHub user handle.
List repositories watched by the authenticated user
Lists repositories the authenticated user is watching (subscribed to for notifications). This action retrieves a list of repositories that the authenticated user is currently watching. It allows the user to manage their watched repositories effectively. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repos with ghactions cache usage
Retrieves a paginated list of GitHub Actions cache usage statistics for repositories within an existing GitHub organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository activities
Lists activities for a GitHub repository, ensuring the repository exists and is accessible.
Get all autolinks of a repository
Retrieves all autolinks (e.g., for JIRA issues) configured for a repository; requires admin permissions on the repository.
List repository collaborators
Lists collaborators for a specified repository, provided it exists and is accessible to the authenticated user. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository contributors
Lists contributors to a specified repository, sorted by number of contributions in descending order; the repository must exist and be accessible. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository Dependabot alerts
List Dependabot vulnerability alerts for a repository with filters and cursor pagination.
List repository events
Lists chronological events (e.g., code pushes, issue activities, PR actions, forks) for a specified, existing GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository invitations
Lists a page of pending collaboration invitations for a specified GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository issues
Lists issues (including pull requests) from a GitHub repository. Requires BOTH 'owner' AND 'repo' parameters (e.g., owner='octocat', repo='Hello-World' for github.com/octocat/Hello-World). Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository languages
Lists the programming languages used in a GitHub repository, returning a byte count for each language.
List repository organization secrets
Lists names of organization-level secrets shared with the specified repository; actual secret values are not returned and visibility depends on token access. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository organization variables
Lists organization-level variables that are shared with a specific repository. The repository must belong to an organization (not a personal account). Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository projects
The repository Projects (classic) endpoint used by this action has been retired. Use Projects v2 through the GraphQL API instead; Projects v2 are owned by users or organizations rather than repositories. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all repository rulesets
Retrieves a page of rulesets for a GitHub repository, including parent rulesets by default. Rulesets define conditions and actions for repository interactions such as branch protection. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository rule suites
Lists rule suite evaluations for a repository, allowing filtering by ref (non-wildcard), time period, actor, and result. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository secrets
Lists a page of metadata for GitHub Actions secrets in a repository, including names and timestamps but not secret values. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository secrets without decrypting
Lists a page of metadata for Dependabot secrets in a repository, including names and creation and update dates; secret values are not included. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository security advisories
Lists repository security advisories, optionally filtered by state and sorted or paginated.
List repository tags
Lists tags for a specified GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository teams
Lists a page of teams with explicit permission to access the specified repository; the repository must exist. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get all repository topics
Retrieves all topics for a specified, existing, and accessible repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository variables
Lists plain text key-value variables for GitHub Actions workflows within a specific, accessible repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository webhooks
Retrieves a list of webhooks for a repository, which must exist and be accessible. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository workflows
Lists a page of GitHub Actions workflows for a specified repository, which must exist and be accessible. The response includes the total workflow count. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repo access by token
Lists repositories in an organization that a fine-grained personal access token has requested access to. Only GitHub Apps can use this endpoint. Requires 'Personal access token requests' organization permissions (read). Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository access to a self-hosted runner group in an organization
Lists the repositories with access to a self-hosted runner group configured in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repo codespaces for authenticated user
Lists Codespaces the authenticated user can access within a specified, existing repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repo dev container configs for user
Lists the `devcontainer.json` configurations available in a specified repository for use with GitHub Codespaces. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List authenticated user's repository invitations
Lists a page of pending repository invitations for the authenticated user. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repository notifications for the authenticated user
Retrieves notifications for the authenticated user from a specified repository, to which the user must have access. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repo secrets without values
Lists a page of Codespaces secrets for a specified repository, without their encrypted values. Returns secret metadata and the total count.
Get all requested reviewers for a pull request
Gets all users and teams requested to review a specific pull request in a repository.
List reviews for a pull request
Lists submitted reviews chronologically for a specific pull request within a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List review comments in a repository
Lists a page of pull request review comments across a specified repository, with sorting and pagination options. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List review comments on a pull request
Lists a page of review comments on a specific pull request within a GitHub repository, with sorting and pagination options. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List runner applications for an organization
Lists downloadable GitHub Actions runner application binaries for setting up self-hosted runners in a GitHub organization. Returns download URLs and checksums for various OS/architecture combinations (linux/win/osx on x64/arm/arm64). Requires admin:org scope or fine-grained 'Self-hosted runners' read permission.
List runner applications for a repository
Lists available self-hosted runner application binaries for a specific repository, including their OS, architecture, and download URL.
List secrets for the authenticated user
Lists all Codespaces secrets accessible to the authenticated user for use within GitHub Codespaces. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List secret scanning alerts for a repository
List secret scanning alerts for a GitHub repository using first-party detections. Use this to retrieve detected secrets with filtering by state, type, resolution, and validity. Supports optional hiding of secret literals for security.
List security advisories (GraphQL)
Tool to list GitHub Security Advisories using the GraphQL API. Use when you need to query security vulnerabilities and malware advisories from the GitHub Advisory Database with advanced filtering and pagination options.
List security vulnerabilities
Query software vulnerabilities documented by GitHub Security Advisories using GraphQL. Use this to find security issues in packages across ecosystems like npm, pip, maven, etc.
List selected repositories for a Codespaces organization secret
Lists a page of repositories selected to access a Codespaces organization secret whose visibility is set to 'selected'. Requires admin:org scope and admin access to the organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List selected repositories for a user secret
Lists repositories that have access to the specified user Codespaces secret. This endpoint retrieves all repositories that the authenticated user has granted access to for a specific user-level Codespaces secret. The secret must already exist for this endpoint to work. Use 'list_secrets_for_the_authenticated_user' to discover available secrets first. Note: The authenticated user must have Codespaces access enabled. OAuth tokens and personal access tokens require the 'codespace' or 'codespace:secrets' scope. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List selected repos for secret access
Lists repositories within a specified organization that have been granted access to a particular Dependabot secret. Note: This endpoint only returns results when the secret's visibility is set to 'selected'. Secrets with visibility 'all' or 'private' do not have specific repository selections. Requires 'admin:org' scope and the user must have admin access to the organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List selected repositories for an organization variable
Lists repositories in an organization that can access a specific organization variable; supports pagination and returns an empty list if no repositories have been granted access. Note: This endpoint only works for variables with visibility set to 'selected' - attempting to use it on variables with 'all' or 'private' visibility will result in a 409 Conflict error. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List self hosted runners for an organization
Lists self-hosted runners for a GitHub organization, optionally filtering by name and paginating results, providing details for each runner such as OS, status, and labels. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List self hosted runners for a repository
Lists self-hosted runners configured for a repository, with optional runner-name filtering and pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List social accounts for a user
Lists social media accounts publicly linked to an existing GitHub user's profile. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List social accounts for the authenticated user
Lists a page of social media accounts linked to the authenticated user's GitHub profile, including links to platforms such as Twitter and LinkedIn. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List Sponsorable Users and Organizations
Tool to list users and organizations who can be sponsored via GitHub Sponsors. Use when you need to discover sponsorable entities with optional filtering by dependency ecosystem.
List SSH signing keys for user
Lists the public SSH signing keys for a specified GitHub user.
List stargazers
Lists users who have starred the specified GitHub repository, which must exist. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List starred gists
Lists gists starred by the authenticated GitHub user. Optionally filter to gists updated after a specified time and select a page of results, with up to 100 results per page.
List starred repositories for user
Lists a page of public repositories starred by a specified GitHub user, sorted by when they were starred or last updated. Supports pagination and sort direction.
Get all status check contexts
Fetches required status check contexts for a branch. Returns an empty list for 404 responses other than an explicit branch-not-found message, so an empty result does not necessarily establish that checks are absent.
List marketplace subscriptions for authenticated user
Tool to list GitHub Marketplace subscriptions for the authenticated user. Use when you need to retrieve active marketplace app subscriptions including billing details, plan information, and trial status. Returns subscription information with account, plan, billing cycle, and pricing details.
List stubbed subscriptions for the authenticated user
Lists the authenticated user's stubbed (test/example data, not live) GitHub Marketplace subscriptions, useful for development or testing. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List sub-issues for an issue
Tool to list sub-issues for a specific GitHub issue. Use when you need to retrieve all sub-issues associated with a parent issue, supporting pagination for large hierarchies.
List tag protection states for a repository
The tag protection endpoint used by this action has been retired. Use repository rulesets targeting tags instead.
List teams
Lists teams for a specified GitHub organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List teams for the authenticated user
Lists all teams across all organizations to which the authenticated user belongs, supporting pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List teams assigned to an organization role
Lists a page of teams assigned to a specific role in a GitHub organization, helping administrators audit role assignments. Requires organization administrator privileges; page size can be set from 1 to 100. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List team members
Lists members of a specific team within an organization, including members of child teams. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List team projects
The Projects (classic) team endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for listing projects by team access. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List team repositories
Lists repositories accessible to a specific team within a GitHub organization. Returns a list of repositories that the specified team has access to, including the team's permission level (admin, maintain, push, triage, pull) for each repository. Requires read:org scope and membership in the organization to access team data. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List the people a user follows
Lists GitHub users that a valid GitHub `username` is following, supporting pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List people the authenticated user follows
Lists people the authenticated user follows. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List timeline events for an issue
Lists chronological events (e.g., comments, commits, label changes) for a specific issue in a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List token access repositories
Lists a page of repositories in an organization accessible to a specified fine-grained personal access token, for auditing its repository access. The caller must be an organization owner or have the Personal access tokens organization permission; the endpoint is for GitHub Apps. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List users
Lists a page of GitHub users, including individuals and organizations, in chronological order of sign-up. Supports pagination by starting user ID and results per page.
List users blocked by an organization
Lists users blocked by a specified GitHub organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List users blocked by the authenticated user
Lists users blocked by the authenticated user, returning an empty list if no users are blocked. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List users assigned org role
Lists users assigned to a specific role within a GitHub organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List user projects
Lists Projects V2 for a specified GitHub user using GraphQL, with page-based pagination and optional state filtering. State filtering is applied after fetching the page, so a page may contain fewer matching projects than requested.
List watchers
Retrieves a list of users watching a specific repository; the repository must be accessible to the authenticated user. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List workflow runs for a repository
Lists workflow runs for a repository, allowing filtering by actor, branch, event, status, creation date, check suite ID, or head SHA; the repository must exist and be accessible. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List workflow runs for a workflow
Lists runs for a specified, existing workflow (identified by ID or filename like `main.yml`) in a GitHub repository, with filtering options. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List workflow run artifacts
Lists artifacts (e.g., build outputs, test results) for a specific workflow run in a GitHub repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Lock an issue
Locks an existing GitHub issue's conversation, preventing further comments; an optional reason can be specified.
Lookup Enterprise Administrator Invitation
Look up a pending enterprise administrator invitation by invitee login, enterprise slug, and role. An empty result can indicate either no invitation was returned or a GraphQL resolution or not-found error.
Lookup GitHub Resource
Look up a GitHub resource by URL and return its GraphQL type and URL.
Lookup nodes by IDs
Look up multiple GitHub nodes by their global node IDs in a single GraphQL query, returning each node's ID and type.
Lookup Organization (GraphQL)
Tool to lookup a GitHub organization by login using GraphQL. Use when you need organization information via GraphQL API.
Look Up Topic by Name
Tool to look up a GitHub topic by name using GraphQL. Use when you need to find information about a specific GitHub topic including its popularity (stargazer count) and related topics.
Manage access control for organization codespaces
Sets the Codespaces access control policy for a GitHub organization, determining which members can use them. This endpoint requires admin permissions on the organization. The API returns HTTP 204 No Content on success.
Manage custom properties for org repos
Creates or updates values for an organization's predefined custom properties across multiple repositories (up to 30).
Manage issue blocking dependency
Add or remove an issue that blocks another issue in the same repository.
List selected repositories for a GitHub Actions organization secret
Lists a page of repositories explicitly selected to access a GitHub Actions organization secret. The secret's visibility must be set to 'selected'; organization admin access and appropriate authorization are required. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Map a commit author
Updates Git author information (name and/or email) for an `author_id` obtained during a repository import, to correctly attribute commits. NOTE: This endpoint has been deprecated by GitHub as of April 12, 2024, and is no longer available. The Source Imports REST API has been retired due to very low usage levels. Please use the GitHub Importer tool at https://github.com/new/import for repository imports.
Mark a thread as done
Marks the GitHub notification thread (identified by `thread_id`) as done or read for the authenticated user, effectively archiving it.
Mark a thread as read
Marks an existing GitHub notification thread, identified by its `thread_id`, as read.
Mark notifications as read
Marks notifications as read or unread, optionally for those updated at or before a `last_read_at` timestamp.
Mark pull request ready for review
Marks a draft pull request as ready for review using GitHub GraphQL API, transitioning it from draft to reviewable state. Use this action when a draft pull request has reached a stage where it is ready for team review and can potentially be merged. This action cannot be used on pull requests that are already marked as ready for review.
Mark repository notifications as read
Marks notifications in a repository as read; if 'last_read_at' is specified, notifications updated after this timestamp are not marked as read.
Merge a branch
Merges a head branch or commit SHA into a base branch in a repository; fails if there are merge conflicts requiring manual resolution.
Merge a pull request
Merges an open and mergeable pull request in a repository. A 405 error can occur for multiple reasons: (1) The PR is still in draft mode - convert it to ready-for-review first using GITHUB_UPDATE_A_PULL_REQUEST. (2) Branch protection rules are not satisfied - check for required approving reviews, status checks, or other repository rules that must be met before merging. (3) The base branch has been modified since the PR was last synced - update the PR branch first using GITHUB_UPDATE_A_PULL_REQUEST_BRANCH.
Delete a user migration archive
Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/migrations/users#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/migrations/users#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted.
Delete an organization migration archive
Deletes a previous migration archive. Migration archives are automatically deleted after seven days.
Download an organization migration archive
Fetches the URL to a migration archive.
Download a user migration archive
Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: * attachments * bases * commit\_comments * issue\_comments * issue\_events * issues * milestones * organizations * projects * protected\_branches * pull\_request\_reviews * pull\_requests * releases * repositories * review\_comments * schema * users The archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data.
Get a user migration status
Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: * `pending` - the migration hasn't started yet. * `exporting` - the migration is in progress. * `exported` - the migration finished successfully. * `failed` - the migration failed. Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/migrations/users#download-a-user-migration-archive).
Get an organization migration status
Fetches the status of a migration. The `state` of a migration can be one of the following values: * `pending`, which means the migration hasn't started yet. * `exporting`, which means the migration is in progress. * `exported`, which means the migration finished successfully. * `failed`, which means the migration failed.
List user migrations
Lists all migrations a user has started. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization migrations
Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API). A list of `repositories` is only returned for export migrations. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories for a user migration
Lists all the repositories for this user migration. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List repositories in an organization migration
List all the repositories for this organization migration. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Start a user migration
Initiates the generation of a user migration archive.
Start an organization migration
Initiates the generation of a migration archive.
Move a project card (Classic - Deprecated)
The Projects (classic) card-move endpoint used by this action has been retired. Use Projects v2 through the GraphQL `updateProjectV2ItemPosition` mutation instead.
Move a project column (Classic - Deprecated)
Moves a column within a GitHub Classic Project to the first or last position, or after a specified column. DEPRECATED: The Classic Projects REST API has been sunset and this action no longer works on GitHub.com. Use GitHub Projects V2 with the GraphQL API for new projects.
Create an OIDC custom property inclusion for an organization
Adds a repository custom property to be included in the OIDC token for repository actions in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Delete an OIDC custom property inclusion for an organization
Removes a repository custom property from being included in the OIDC token for repository actions in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
List OIDC custom property inclusions for an organization
Lists the repository custom properties that are included in the OIDC token for repository actions in an organization. OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
Cancel an organization invitation
Cancel an organization invitation. In order to cancel an organization invitation, the authenticated user must be an organization owner. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications).
Check organization membership for a user
Check if a user is, publicly or privately, a member of the organization.
Create an artifact deployment record
Create or update deployment records for an artifact associated with an organization. This endpoint allows you to record information about a specific artifact, such as its name, digest, environments, cluster, and deployment. The deployment name has to be unique within a cluster (i.e a combination of logical, physical environment and cluster) as it identifies unique deployment. Multiple requests for the same combination of logical, physical environment, cluster and deployment name will only create one record, successive request will update the existing record. This allows for a stable tracking of a deployment where the actual deployed artifact can change over time.
Create artifact metadata storage record
Create metadata storage records for artifacts associated with an organization. This endpoint will create a new artifact storage record on behalf of any artifact matching the provided digest and associated with a repository owned by the organization.
Create a cluster deployment records job
Create a background job to set deployment records for a given cluster. Performs validation and permission checks synchronously, returning rejected deployments immediately, then enqueues a background job for the actual deployment updates. Use the companion GET endpoint to poll for job status.
Create an organization invitation
Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
Create issue field for an organization
Creates a new issue field for an organization. You can find out more about issue fields in [Managing issue fields in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields-in-an-organization). To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Delete attestations in bulk
Delete artifact attestations in bulk by either subject digests or unique ID.
Delete attestations by ID
Delete an artifact attestation by unique ID that is associated with a repository owned by an org.
Delete attestations by subject digest
Delete an artifact attestation by subject digest.
Delete issue field for an organization
Deletes an issue field for an organization. You can find out more about issue fields in [Managing issue fields in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields-in-an-organization). To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Delete issue type for an organization
Deletes an issue type for an organization. You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Disable a selected repository for immutable releases in an organization
Removes a repository from the list of selected repositories that are enforced for immutable releases in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. OAuth tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
Enable a selected repository for immutable releases in an organization
Adds a repository to the list of selected repositories that are enforced for immutable releases in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. OAuth tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
Remove all external custom property values for a property across all organization repositories
Removes all external custom property values for a specified property name across all repositories that belong to an organization. To use this endpoint, the authenticated GitHub App must have the `organization_external_properties_for_repos:write` permission.
Get registered app installations for external custom properties
Gets the registered GitHub App installations used to read and write external custom properties for an organization. A GitHub App installation token will only be able to see its own registration info, whereas an authenticated user will be able to see all registrations for the organization. To use this endpoint, the authenticated caller must have the `organization_external_properties_for_repos:admin` permission.
Get all external custom properties for a GitHub App installation in an organization
Gets all external custom properties defined for the authenticated GitHub App installation on an organization. To use this endpoint, the authenticated GitHub App must have the `organization_external_properties_for_repos:read` permission.
Create or update external custom property values for organization repositories
Create new or update existing external custom property values for repositories in a batch that belong to an organization. Each target repository will have its external custom property values updated to match the values provided in the request. A maximum of 30 repositories can be updated in a single request. Using a value of `null` for an external custom property will remove or 'unset' the property value from the repository. To use this endpoint, the authenticated GitHub App must have the `organization_external_properties_for_repos:write` permission.
Get cluster deployment records job status
Get the status and results of a previously created cluster deployment records job.
Get immutable releases settings for an organization
Gets the immutable releases policy for repositories in an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
List selected repositories for immutable releases enforcement
List all of the repositories that have been selected for immutable releases enforcement in an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get an organization membership for the authenticated user
If the authenticated user is an active or pending member of the organization, this endpoint will return the user's membership. If the authenticated user is not affiliated with the organization, a `404` is returned. This endpoint will return a `403` if the request is made by a GitHub App that is blocked by the organization.
Get organization membership for a user
In order to get a user's membership with an organization, the authenticated user must be an organization member. The `state` parameter in the response can be used to identify the user's membership status.
Get organization ruleset history
Get the history of an organization ruleset. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get organization ruleset version
Get a version of an organization ruleset.
List app installations for an organization
Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. The authenticated user must be an organization owner to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `admin:read` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List artifact deployment records
List deployment records for an artifact metadata associated with an organization.
List artifact storage records
List artifact storage records with a given subject digest for repositories owned by an organization. Results are filtered by the authenticated user's permissions; records for repositories the user cannot read are omitted. Fine-grained access tokens require the `artifact-metadata:read` permission.
List attestations
List a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization. The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List attestations by bulk subject digests
List a collection of artifact attestations associated with any entry in a list of subject digests owned by an organization. The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List failed organization invitations
The return hash contains `failed_at` and `failed_reason` fields which represent the time at which the invitation failed and the reason for the failure. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization invitation teams
List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue fields for an organization
Lists all issue fields for an organization. OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint.
List pending organization invitations
The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, or `hiring_manager`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Remove organization membership for a user
In order to remove a user's membership with an organization, the authenticated user must be an organization owner. If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. > [!NOTE] > If a user has both direct membership in the organization as well as indirect membership via an enterprise team, only their direct membership will be removed. Their indirect membership via an enterprise team remains until the user is removed from the enterprise team.
Set cluster deployment records
Set deployment records for a given cluster. If proposed records in the 'deployments' field have identical 'cluster', 'logical_environment', 'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated. If no existing records match, new records will be created. Note: Artifacts are uniquely identified by the combination of their repository and digest fields. If two entries in the deployments array resolve to the same repository and have identical digest fields but differing name and version fields, the endpoint will use the artifact name and version from the record processed first, since a single artifact (identified by repository and digest) can only have one name and version.
Set immutable releases settings for an organization
Sets the immutable releases policy for repositories in an organization. OAuth tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
Set selected repositories for immutable releases enforcement
Replaces all repositories that have been selected for immutable releases enforcement in an organization. To use this endpoint, the organization immutable releases policy for `enforced_repositories` must be configured to `selected`. OAuth tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
Set organization membership for a user
Only authenticated organization owners can add a member to the organization or update the member's role. * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. **Rate limits** To prevent abuse, organization owners are limited to creating 50 organization invitations for an organization within a 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations
Set public organization membership for the authenticated user
The user can publicize their own membership. (A user cannot publicize the membership for another user.) Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
Update issue field for an organization
Updates an issue field for an organization. You can find out more about issue fields in [Managing issue fields in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/using-issues/managing-issue-fields-in-an-organization). To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Update an organization membership for the authenticated user
Converts the authenticated user to an active member of the organization, if that user has a pending invitation from the organization.
Ping an organization webhook
Sends a ping event to a specified existing organization webhook to test its configuration. A successful request queues the event; it does not confirm delivery.
Ping a repository webhook
Pings an existing webhook on a repository to test its configuration and reachability by GitHub.
Get list of conflicting packages during Docker migration for organization
Lists all packages that are in a specific organization, are readable by the requesting user, and that encountered a conflict during a Docker migration. OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
Get list of conflicting packages during Docker migration for user
Lists all packages that are in a specific user's namespace, that the requesting user has access to, and that encountered a conflict during Docker migration. OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
Privately report a security vulnerability
Privately reports a security vulnerability to a repository's maintainers. IMPORTANT: You cannot report vulnerabilities to repositories you own - this API is for third-party security researchers to report to other repositories. The target repository must have private vulnerability reporting enabled. Specify EITHER `severity` OR `cvss_vector_string`, but not both.
Get a private registry for an organization
Get the configuration of a single private registry defined for an organization, omitting its encrypted value. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Get private registries public key for an organization
Gets the org public key, which is needed to encrypt private registry secrets. You need to encrypt a secret before you can create or update secrets. OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
List private registries for an organization
Lists all private registry configurations available at the organization-level without revealing their encrypted values. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Add a field to an organization-owned project.
Add a field to an organization-owned project.
Add item to organization owned project
Add an issue or pull request item to the specified organization owned project.
Create draft item for organization owned project
Create draft issue item for the specified organization owned project.
Create a view for an organization-owned project
Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.
Delete project item for organization
Delete a specific item from an organization-owned project.
Delete project item for user
Delete a specific item from a user-owned project.
Get project field for organization
Get a specific field for an organization-owned project.
Get project field for user
Get a specific field for a user-owned project.
Get project for organization
Get a specific organization-owned project.
List project fields for organization
List all fields for a specific organization-owned project. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List projects for organization
List all projects owned by a specific organization accessible by the authenticated user. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List items for an organization owned project
List all items for a specific organization-owned project accessible by the authenticated user. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
Update project item for organization
Update a specific item in an organization-owned project.
Update project item for user
Update a specific item in a user-owned project.
Publish Sponsors Tier (GraphQL)
Tool to publish a draft GitHub Sponsors tier using GraphQL. Use when you need to make a draft sponsors tier visible to potential sponsors. The tier must already exist in draft status.
Get the result of an asynchronous merge
Fetches the current result of an asynchronous merge request, identified by the UUID that was returned when the merge was requested. While the request's status is `pending`, the response includes the UUID, merge method, merge action, and expected head SHA of the request. Once the asynchronous request completes, its status is one of: - `merged`: The pull request was merged into the base branch. The response includes the merge commit OID. - `enqueued`: The pull request was added to a merge queue. - `failed`: The request failed. The response includes a message describing the failure. An `enqueued` result is final for the merge queue requests and does not mean the pull request has merged. This result does not change when the merge queue later merges the pull request. To get the eventual merge status, [check if a pull request has been merged](https://docs.github.com/rest/pulls/pulls#check-if-a-pull-request-has-been-merged). The result of an asynchronous merge request is retained for 24
Merge a pull request asynchronously
Merges a pull request into the base branch in the background or adds it to a merge queue. Background processing allows certain types of errors to be retried and reduces the risk of timeouts for complex merges. This is the required API for merging stacked pull requests. For a stacked pull request, the operation includes all open downstack pull requests. A new asynchronous merge request returns a `202` response with a UUID that can be used to [fetch the result of the merge](https://docs.github.com/rest/pulls/pulls#get-the-result-of-an-asynchronous-merge). If another asynchronous merge request is already pending for this pull request, a `409` response returns that request's UUID and merge options instead. If the pull request is already merged or already in a merge queue, a `200` response is returned immediately. A `merged` result includes the merge commit OID. An `enqueued` result means the pull request was added to the merge queue, not that it has merged. If the pull request cannot be
Request a Copilot code review for a pull request
Requests a Copilot code review for a pull request. Every call expresses intent to start a new review: if no Copilot review has been requested yet, an initial request is created; if the most recent Copilot review has already completed (including if it was later dismissed or superseded), a new request is created automatically to continue the review lifecycle. If a Copilot code review request is already pending for the pull request, no new request is created and the response is `409`. If the actor or repository is not eligible for Copilot code review, the actor has no quota remaining, or the licensing organization is unavailable, no request is created and the response is `422` with a stable `failure_reason`. A `review_effort` is accepted only when that effort level is available for the repository and actor; an unrecognized or unavailable `review_effort` returns `422` with `failure_reason` `INVALID_REVIEW_EFFORT`. If the actor, repository owner, or requesting application owner has been
Rerequest reviewers for a pull request
Rerequests reviews for a pull request from a given set of users and/or teams. This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
Add pull requests to a pull request stack
Appends an ordered list of pull request numbers onto the top of an existing stack. Provide only the pull requests you want to add, from the current top of the stack upward. The first new pull request's base ref must match the current top pull request's head ref.
Create a pull request stack
Creates a stack from an ordered list of pull request numbers. Provide the pull request numbers from the bottom of the stack to the top. Each pull request's base ref must match the previous pull request's head ref.
Get a pull request stack
Gets a pull request stack by providing its stack number.
List pull request stacks
Lists pull request stacks in a repository. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Remove pull requests from a pull request stack
Removes the unmerged pull requests from a stack. Pull requests that cannot be unstacked (for example, those that are queued for merge) are left in place. When pull requests remain in the stack, the updated stack is returned with a `200`. When no pull requests remain, the stack is dissolved and a `204` is returned.
Redeliver a delivery for an organization webhook
Redelivers a specific webhook delivery for a webhook within an organization, to resend an event that previously failed or was not processed.
Redeliver a delivery for a repository webhook
Redelivers a specific, previously made webhook delivery (`delivery_id`) for a repository's webhook (`hook_id`).
Remove all labels from an issue
Removes all labels from a specified issue in a GitHub repository; this operation is idempotent.
Remove all organization roles for a team
Revokes all organization roles for a team in an organization; this is destructive and succeeds even if the team initially has no roles.
Remove all organization roles for a user
Revokes all assigned organization-level roles from a specified user (who must be a member of the organization) within a GitHub organization, without removing the user from the organization or affecting repository-specific roles.
Remove an organization member
Removes a member from a GitHub organization. This action permanently removes a user's membership from the specified organization, revoking their access to all organization resources, repositories, and teams. Requirements: - The authenticated user must be an organization owner - The target user must currently be a member of the organization Note: This action cannot be used to remove the last owner of an organization.
Remove an organization role from a team
Revokes an organization role that a team currently possesses within an organization.
Remove an organization role from a user
Removes a custom organization role from a user within a GitHub organization, provided the organization exists, the user is a member, and the role_id corresponds to a valid custom role in that organization.
Remove app access restrictions
Removes all GitHub App access restrictions from a protected branch without altering user or team restrictions. A 404 is returned as an empty app list with an explanatory message rather than an exception.
Remove assignees from an issue
Removes specified assignees from a GitHub issue; requires push access, and invalid removal attempts are silently ignored.
Remove a custom property for an organization
Deletes a custom property, specified by `custom_property_name`, from an existing organization (`org`) for which the property is currently defined, preventing its future assignment to repositories.
Remove a label from an issue
Removes a label currently applied to a specific issue in a repository.
Remove a project from a team
The Projects (classic) team endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for removing a project from a team.
Remove a repository collaborator
Removes a collaborator from a specified GitHub repository, provided the repository exists and the user is an existing collaborator.
Remove a repository from an app installation
Removes a repository from a GitHub App installation for the authenticated user, given a valid `installation_id` and the `repository_id` of a repository currently linked to that installation; this operation is idempotent.
Remove a repository from a team
Disassociates a repository from a team; team members may lose access permissions, but the repository and team are not deleted.
Remove a selected repository from a user secret
Removes a selected repository's access to a user's Codespaces secret; the secret must exist and the repository must have previously been granted access.
Remove custom labels from self hosted repo runner
Removes all custom labels from a self-hosted runner registered at the repository level, leaving only its default labels and any labels inherited from its runner group or organization.
Remove custom label from repo runner
Removes a custom label from a repository's self-hosted runner; this operation is idempotent.
Remove custom label from self hosted runner
Removes a currently assigned custom label (`name`) from a self-hosted runner (`runner_id`) in an organization (`org`). This action allows the organization to manage the labels associated with their runners effectively.
Remove interaction restrictions for an organization
Removes all interaction restrictions from public repositories in the specified GitHub organization, allowing all users to resume interactions.
Remove interaction restrictions for a repository
Removes all interaction restrictions for a repository, enabling all users to comment, open issues, and create pull requests by lifting any existing temporary interaction limits.
Remove org dev env secret by name
Deletes a named GitHub Codespaces secret from an organization. A not-found response is treated as success, so success does not necessarily confirm that a secret was deleted.
Remove org secret by name
Permanently removes a specific Dependabot secret, by its `secret_name`, from the GitHub `org`, making it unavailable to Dependabot for that organization.
Remove outside collaborator from an organization
Removes a user, who must be an outside collaborator, from the specified GitHub organization, revoking their access to all its repositories.
Remove public org membership
Removes the authenticated user's public organization membership, making it private. The user remains a member of the organization but their membership is no longer publicly visible. This operation is idempotent - calling it when the membership is already private will succeed.
Remove user public repo interaction restrictions
Removes all interaction restrictions (limitations on comments, issues, or pull requests) from all public repositories owned by the authenticated user.
Remove repository access to a self-hosted runner group in an organization
Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Remove repository from organization dev environment secret
Removes a repository's access to an organization-level Codespaces secret, if it was previously granted.
Remove selected repo from org secret
Revokes a specific repository's access to an organization-level Dependabot secret, applicable only when the secret has 'selected' visibility and the specified repository currently has access.
Remove requested reviewers from a pull request
Removes currently assigned user logins and/or team slugs from a GitHub pull request's list of requested reviewers.
Remove review request
Removes requested reviewers from a pull request. Use this action when you need to cancel a review request that was previously sent to users or teams. Only users with push access to the repository can remove review requests.
Remove selected repository from an organization secret
Removes a specific repository's access to an organization-level secret; the repository must have been previously granted access to this secret.
Remove selected repository from an organization variable
Removes a repository's access to an organization variable that has 'selected' visibility. This endpoint removes a specific repository from an organization variable's access list. The variable must have its visibility set to 'selected' for this operation to work. Returns a 409 Conflict error if the variable visibility is not 'selected'.
Remove status check contexts
Removes specified status check contexts from a protected branch's required status checks. This action removes the specified status check contexts from the existing list of required status checks for a protected branch. The branch must already have branch protection enabled with status checks configured. Note: The 'contexts' parameter is deprecated by GitHub in favor of 'checks' array. For new implementations, consider using update_status_check_protection with the 'checks' parameter instead.
Remove status check protection
Removes status check protection from a branch, disabling required status checks for merging pull requests; will only have an effect if status check protection is currently configured on the branch.
Remove team access restrictions
Removes specified teams from push access to a protected branch. This action removes teams from the list of teams with push access to a protected branch. Removing a team will also remove push access for any child teams. Prerequisites: - The repository must be owned by an organization (not a personal account) - The branch must have protection rules enabled - The branch protection must have restrictions configured - The teams must currently have push access to the branch
Remove team membership
Tool to remove team membership for a user in an organization. Use when you need to revoke a user's membership from a specific team. This action is irreversible — the user must be explicitly re-added if you want to restore their team membership. Note that if team synchronization is set up, this operation may fail with a 403 Forbidden error.
Remove team membership for a user
Removes a user from a specific team within an organization. This action requires admin:org scope permissions. It will fail if: - Team synchronization with an Identity Provider (IdP) is enabled (403 Forbidden) - The organization, team, or user membership doesn't exist (404 Not Found) - You don't have sufficient permissions to manage team memberships (403 Forbidden) Note: If the removed user was the last member and the team is not nested, the team may be deleted automatically.
Remove users from codespaces access for an organization
Deprecated by GitHub: removes selected users from Codespaces billing access for an existing organization. This action remains registered for compatibility.
Remove user access restrictions
Removes specified users from the list of people allowed to push to a protected branch. Important notes: - This action only works on organization-owned repositories (not personal repos) - The branch must have protection rules with push restrictions enabled - Users being removed must currently have push access to the branch - The combined total of users, apps, and teams is limited to 100 items
Remove user as a collaborator (classic project)
The Projects (classic) collaborator endpoint used by this action has been retired. Use Projects v2 and its GraphQL API instead. Projects v2 has no one-to-one replacement for removing a project collaborator.
Rename a branch
Renames an existing branch in a GitHub repository; the new name must be unique and adhere to GitHub's naming conventions, and the current branch name cannot contain wildcard characters.
Render a markdown document
Renders Markdown to HTML; for 'gfm' mode, provide 'context' (owner/repo) to correctly link issues, pull requests, and user mentions.
Render Markdown (Raw Mode)
Tool to render raw Markdown text to HTML using GitHub's markdown API. Use when you need to convert plain Markdown content to HTML without GitHub-specific features like issue references or @mentions.
Reopen an issue
Reopens a closed GitHub issue by changing its state to 'open' with state_reason 'reopened'. Use this action when you need to reopen a previously closed issue that requires further attention or work. Only users with push access to the repository can reopen issues.
Reopen Pull Request
Reopens a previously closed pull request by setting its state to 'open'. This restores the pull request to an active state where it can be reviewed, commented on, and merged. Use this action when you need to reactivate a closed pull request that was closed prematurely or needs to be reconsidered for merging.
Replace all repository topics
Replaces all topics of a repository.
Replace org secret visibility to selected
Replaces the list of repositories that can access a Dependabot organization secret when the secret's visibility is already set to 'selected'.
Replace repository access for an org Codespaces secret
Replaces the list of repositories that can access an organization-level Codespaces secret. This operation completely replaces the existing list of repositories with the provided list. The secret must already have its visibility set to 'selected' for this operation to succeed. Use this when you want to set an exact list of repositories that should have access. Prerequisites: - The organization must exist and you must have admin:org scope - The Codespaces secret must already exist in the organization - The secret's visibility must be set to 'selected' (not 'all' or 'private') Returns HTTP 204 No Content on success, 404 if secret/org not found, 409 if visibility is not 'selected'.
Check if Dependabot security updates are enabled for a repository
Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
Check if immutable releases are enabled for a repository
Shows whether immutable releases are enabled or disabled. Also identifies whether immutability is being enforced by the repository owner. The authenticated user must have admin read access to the repository.
Check if vulnerability alerts are enabled for a repository
Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin read access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)".
Create an attestation
Store an artifact attestation and associate it with a repository. The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required. Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
Create an organization repository ruleset
Create a repository ruleset for an organization.
Delete an organization repository ruleset
Delete a ruleset for an organization.
Disable Dependabot security updates
Disables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
Disable immutable releases
Disables immutable releases for a repository. The authenticated user must have admin access to the repository.
Disable vulnerability alerts
Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)".
Enable Dependabot security updates
Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
Enable immutable releases
Enables immutable releases for a repository. The authenticated user must have admin access to the repository.
Enable vulnerability alerts
Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)".
Get the hash algorithm for a repository
Returns the hash algorithm used to store repository objects.
Get an organization repository ruleset
Get a repository ruleset for an organization. **Note:** To prevent leaking sensitive information, the `bypass_actors` property is only returned if the user making the API request has write access to the ruleset.
Get all organization repository rulesets
Get all the repository rulesets for an organization. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get an organization rule suite
Gets information about a suite of rule evaluations from within an organization. For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)."
List organization rule suites
Lists suites of rule evaluations at the organization level. For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)." Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get repository ruleset history
Get the history of a repository ruleset. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Get repository ruleset version
Get a version of a repository ruleset.
List issue types for a repository
Lists enabled issue types inherited from the repository owner. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. Fine-grained access tokens require the "Metadata" repository permission (read).
List planning statuses for a repository
Lists the selectable planning statuses available. Planning statuses are returned in deterministic display order: Backlog, Todo, In progress, In review, Done, Not planned, and Duplicate. Clients should expect new keys to be added. Returns `404 Not Found` when issue statuses aren't available in the repository. > [!NOTE] > Issue statuses are in public preview and subject to change. You need read access to the repository's issues to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. Fine-grained access tokens require the "Issues" repository permission (read).
Update an organization repository ruleset
Update a ruleset for an organization.
Upload a release asset
Upload a binary asset to an existing GitHub release.
Request a github pages build
Manually triggers a GitHub Pages build for a repository if GitHub Pages is enabled, useful for deployments not automatically built or for retrying failed builds.
Request reviewers for a pull request
Requests reviewers for a specific pull request identified by owner, repository, and pull request number. Use this action when you need to add individual users or teams as reviewers to an existing pull request. At least one of reviewers (individual users) or team_reviewers (teams) must be provided.
Add reviewers to a specific pull request
Adds reviewers to a specific pull request identified by owner, repo, and pull_number. This is NOT a search action - it operates on an already-known PR number. Requires `owner`, `repo`, `pull_number`, and at least one of `reviewers` or `team_reviewers`.
Rerequest a check run
Triggers a re-run of a specific check run in a GitHub repository, resetting its status to 'queued', clearing its conclusion, and triggering the `check_run` webhook with `rerequested` action. IMPORTANT: This endpoint requires GitHub App authentication with 'checks:write' permission. The check run can ONLY be re-requested by the same GitHub App that originally created it. OAuth tokens and personal access tokens (PAT) cannot use this endpoint.
Rerequest a check suite
Triggers a new run of an existing check suite within a repository, resetting its status to 'queued', clearing its conclusion, and triggering the `check_suite` webhook with `rerequested` action. IMPORTANT: This endpoint requires GitHub App authentication with 'checks:write' permission. OAuth tokens and classic personal access tokens (PAT) cannot use this endpoint. Only GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens with checks:write permission are supported.
Reset a token
Invalidates the provided OAuth `access_token` and generates a new one for the GitHub OAuth App identified by `client_id`. Used for token rotation when a token may be compromised or for regular security maintenance. Note: This endpoint requires the OAuth App owner's credentials (client_id/client_secret for Basic Auth).
Restore a package for an organization
Restores a package in an organization, provided it was deleted within the last 30 days.
Restore a package for a user
Restores a user-owned package previously deleted from GitHub Packages, if restorable under GitHub's data retention policy (typically within 30 days of deletion).
Restore a package for the authenticated user
Restores a package deleted by the authenticated user within the last 30 days, if its namespace and version are still available.
Restore a package version for the authenticated user
Restores a package version that was deleted by the authenticated user within the last 30 days.
Restore package version for an organization
Restores a package version for an organization, provided it was deleted within the last 30 days.
Restore package version for a user
Restores a specific, user-owned package version if it was deleted within the last 30 days and its original namespace and version name are still available.
Retire Sponsors Tier
Tool to retire a published payment tier from your GitHub Sponsors profile using GraphQL. Use when you need to prevent a tier from being used for new sponsorships. Existing sponsors at this tier remain unaffected.
Review access with personal token
Approves or denies a pending fine-grained personal access token request for organization resources; must be performed by a GitHub App.
Review Custom Deployment Rules For Workflow Run
Approves or rejects pending custom deployment protection rules for a workflow run. This endpoint allows GitHub Apps to review their own pending custom deployment protection rules for a specific workflow run. The review can either approve (allowing the deployment to proceed) or reject (blocking the deployment). **Important notes:** - GitHub Apps can only review their own custom deployment protection rules - This endpoint requires GitHub App installation access tokens with Deployments permission (write) - Custom deployment protection rules are available in public repos for all plans; for private/internal repos, GitHub Enterprise is required - Returns 204 No Content on success
Review pending deployments for a workflow run
Approves or rejects pending deployments for a specific workflow run that are in a 'waiting' state within specified, configured environments.
Review PAT Requests in Bulk
Submits a bulk approval or denial of fine-grained personal access token requests for a GitHub organization. The returned success message indicates acceptance for processing, not confirmation that every request has been processed.
Revoke an installation access token
Revokes the GitHub App's current installation access token, immediately invalidating it for API authentication. IMPORTANT: This endpoint requires a GitHub App installation access token (ghs_* prefix) for authentication. OAuth tokens (gho_*) or personal access tokens are not supported and will result in a 403 Forbidden error. After successful revocation, the token becomes permanently invalid and cannot be used for any subsequent API calls. To continue API operations, a new installation access token must be generated.
Re-run a job from a workflow run
Re-runs a specific job and any dependent jobs from a GitHub Actions workflow run in the specified repository, optionally enabling debug logging.
Rerun a workflow
Re-runs a specific GitHub Actions workflow run identified by its owner, repository, and run ID, optionally enabling debug logging.
Rerun failed jobs from a workflow run
Re-runs all failed jobs and their dependent jobs from a specified workflow run if the run contains previously failed jobs.
Run GraphQL Query
Tool to run an arbitrary GitHub GraphQL v4 query or mutation. Use when fetching multiple datasets in one batch. Cost-based rate limit: ~5,000 points/hour; keep field selections narrow, avoid deep nesting, and include rateLimit in responses to monitor quota. Responses are nested under data.data (e.g., data.data.repository.vulnerabilityAlerts); always inspect the errors array even on HTTP 200, as partial failures embed there. Paginate by looping on pageInfo.hasNextPage and advancing with pageInfo.endCursor. Search results cap at ~1,000 items per query; split by label, date range, or repository for full coverage. Use ProjectV2 nodes, not Classic Projects (deprecated). Parallel mutations (e.g., addProjectV2ItemById) can trigger transient conflicts; use sequential execution.
Run GraphQL Relay Query
Runs a supplied GitHub GraphQL query or mutation, including queries that access root fields through the relay context. The response may include GraphQL errors alongside data.
Search code
Searches code file contents and paths on the default branch of GitHub repositories using a query string; searches only files under 384KB, returns max 1000 results by best match, and is optimized for precision. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Search code (all pages)
Searches GitHub code across multiple pages, optionally capped by a result limit; results may be partial, including because of GitHub's approximately 1,000-result cap and default-branch indexing. Queries combining parentheses with AND, OR, or NOT are rejected by the tool.
Search commits
Finds commits on GitHub using a query string (q) supporting keywords and qualifiers, with options for sorting and pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Search commits by author across repos
Searches commits across GitHub repositories using keywords and qualifiers such as author, committer email, organization, or date range. Results can be sorted by author or committer date and returned in pages of up to 100 commits.
GitHub GraphQL Search
Tool to perform GitHub GraphQL searches across issues, pull requests, repositories, users, and discussions. Returns up to 1,000 results with cursor-based pagination. Use when you need structured search results with specific fields.
Search issues and pull requests
Searches GitHub issues and pull requests using keywords and qualifiers, with sorting and pagination. Results are limited to accessible repositories and may be incomplete or subject to GitHub search limits.
Search issues and pull requests
Searches GitHub for issues and pull requests using keywords and qualifiers, with sorting and pagination. Standalone issue or pull request type filters must be combined with another term; @me is resolved by GitHub. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Search labels
Searches for labels within a GitHub repository by keywords in their names or descriptions. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Search repositories
Searches GitHub repositories using a flexible query (keywords, qualifiers) with sorting, ordering, and pagination. IMPORTANT: The 'q' parameter (search query) is REQUIRED and must always be provided. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Search topics
Finds topics on GitHub using keywords and qualifiers with GitHub's search syntax, supporting pagination. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Search users
Searches for users on GitHub by criteria like username, email, location, followers, or repository associations, using a flexible query string `q`. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Bulk create organization custom patterns
Bulk creates secret scanning custom patterns for an organization. Personal access tokens (classic) need the `write:org` scope to use this endpoint.
Bulk create repository custom patterns
Bulk creates secret scanning custom patterns for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Fine-grained access tokens require the `administration:write` repository permission.
Bulk delete organization custom patterns
Bulk deletes secret scanning custom patterns for an organization. Personal access tokens (classic) need the `write:org` scope to use this endpoint. By default, deleting patterns also permanently deletes their associated alerts; set `post_delete_action` to `resolve_alerts` to preserve those alerts as resolved.
Bulk delete repository custom patterns
Bulk deletes secret scanning custom patterns for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Fine-grained access tokens require the `administration:write` repository permission. By default, deleting patterns also permanently deletes their associated alerts; set `post_delete_action` to `resolve_alerts` to preserve those alerts as resolved.
Create a push protection bypass
Creates a bypass for a previously push protected secret. The authenticated user must be the original author of the committed secret. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
Get a secret scanning alert
Gets a single secret scanning alert detected in an eligible repository. The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
Get secret scanning scan history for a repository
Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
List secret scanning alerts for an organization
Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest. The authenticated user must be an administrator or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List locations for a secret scanning alert
Lists all locations for a given secret scanning alert for an eligible repository. The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List organization custom patterns
Lists secret scanning custom patterns for an organization. Personal access tokens (classic) need the `read:org` scope to use this endpoint. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List organization pattern configurations
Lists the secret scanning pattern configurations for an organization. Personal access tokens (classic) need the `read:org` scope to use this endpoint.
List repository custom patterns
Lists secret scanning custom patterns for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Fine-grained access tokens require the `administration:write` repository permission. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
Update a secret scanning alert
Updates the status of a secret scanning alert in an eligible repository. You can also use this endpoint to assign or unassign an alert to a user who has write access to the repository. The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. > [!NOTE] > If [delegated alert dismissal](https://docs.github.com/code-security/how-tos/manage-security-alerts/manage-secret-scanning-alerts/enable-delegated-dismissal) is enabled, resolving or reopening an alert also requires write access to the "Secret scanning alert dismissal requests" permission. Granting the permission to the app alone is not sufficient if the token's permissions exclude it.
Update an organization custom pattern
Updates a secret scanning custom pattern for an organization. Personal access tokens (classic) need the `write:org` scope to use this endpoint.
Update organization pattern configurations
Updates the secret scanning pattern configurations for an organization. Personal access tokens (classic) need the `write:org` scope to use this endpoint.
Update a repository custom pattern
Updates a secret scanning custom pattern for a repository. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. Fine-grained access tokens require the `administration:write` repository permission.
Create a repository security advisory
Creates a new repository security advisory. In order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository. OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
Get a repository advisory comment
Get a comment on a repository security advisory using the comment's ID. Advisory collaborators can view all non-confidential comments on advisories they have access to. Other users can only view comments that are not considered internal. GitHub Apps and fine-grained personal access tokens with the `repository_advisories: read` permission can view all non-confidential comments, including internal comments. OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to get a comment on a security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
List repository security advisories for an organization
Lists repository security advisories for an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint. Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List repository security advisory comments
Lists comments on a repository security advisory. Accessing internal comments requires write access to the advisory. Callers with read-only access to the advisory receive only eligible post-publication comments. For unpublished advisories, these callers receive an empty list. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Create a repository advisory comment
Creates a comment on a repository security advisory. In order to create a comment, the authenticated user must be an advisory collaborator, security manager, or repository administrator.
Request a CVE for a repository security advisory
If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see "[Requesting a CVE identification number](https://docs.github.com/code-security/security-advisories/repository-security-advisories/publishing-a-repository-security-advisory#requesting-a-cve-identification-number-optional)." You may request a CVE for public repositories, but cannot do so for private repositories. In order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository, or have a custom repository role that includes permission to publish security advisories together with permission to view or manage security advisories. OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
Update a repository advisory comment
Update the body of a comment on a repository security advisory using the comment's ID. In order to update a comment, the authenticated user must be the author of the comment, or a security manager or administrator of the repository. OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
Set admin branch protection
Enables administrator enforcement on a branch, making existing protection rules also apply to administrators; branch protection rules must already be configured.
Set app access restrictions
Replaces the list of GitHub Apps permitted to push to a protected branch; the branch must have push restrictions configured, and apps must be installed with contents write permission on an eligible organization repository. A 404 returns an empty app list with an explanatory message.
Set a repository subscription
Sets the authenticated user's notification subscription for a repository.
Set a thread subscription
Sets whether a GitHub notification thread is ignored (muted) or unignored (unmuted), for a `thread_id` that must identify an existing notification thread.
Set default workflow permissions for an organization
Updates an organization's default GITHUB_TOKEN permissions for workflows and whether GitHub Actions can approve pull requests; note that allowing Actions to approve pull requests (`can_approve_pull_request_reviews: true`) is a security risk.
Set default workflow permissions for a repository
Sets the default permissions for the GITHUB_TOKEN within a repository and configures whether GitHub Actions can approve pull requests.
Set primary email visibility
Sets the visibility ('public' or 'private') of the authenticated user's primary email address on GitHub, if one is configured.
Set GitHub Actions permissions for an organization
Sets the GitHub Actions permissions policy for an organization, specifying which repositories can run Actions and which actions/workflows are allowed; if 'selected' is chosen for either, manage the specific lists via other endpoints.
Set github actions permissions for a repository
Sets GitHub Actions permissions for a repository, enabling/disabling Actions and defining the policy for allowed actions and reusable workflows.
Set interaction restrictions for an organization
Limits interactions (comments, new issues, PRs) in an organization's public repositories by user type and duration, typically to mitigate high traffic or unwanted activity.
Set interaction restrictions for a repository
Temporarily limits which GitHub users (e.g., existing_users, contributors_only) can interact (comment, open issues, create pull requests) in a repository for a specified duration.
Set interaction restrictions for your public repositories
Sets or updates temporary interaction restrictions for all public repositories owned by the authenticated user, overriding any repository-specific limits.
Set labels for an issue
Replaces all existing labels on a GitHub issue with a new set of labels.
Set custom OIDC subject claim template
Sets the OpenID Connect (OIDC) subject claim template for a GitHub repository, allowing use of the default template or a custom one defined by `include_claim_keys` if `use_default` is `false`.
Set allowed actions and workflows for an organization
Sets the GitHub Actions permissions for an existing organization, specifying allowed GitHub-owned actions, verified creator actions, and action/workflow patterns from public repositories.
Set custom labels for a self-hosted runner for an organization
Sets the custom labels for a self-hosted runner in an organization; this operation does not affect default system-assigned labels (e.g., 'self-hosted', 'linux', 'x64').
Set repository access for a self-hosted runner group in an organization
Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
Set repo allowed actions
Sets allowed GitHub Actions and reusable workflows for a repository, managing permissions for GitHub-owned, verified creator, or specific pattern-matched actions/workflows (note: `patterns_allowed` applies only to public repositories).
Set custom labels for repo runner
Replaces all custom labels for a specific self-hosted runner in a repository; an empty list for `labels` removes all existing custom labels.
Set selected repositories for an organization secret
Replaces the list of repositories that can access an organization secret; only effective if the secret's visibility is 'selected'. Prerequisites: - The organization secret must already exist - The secret's visibility must be set to 'selected' (not 'all' or 'private') - Requires admin:org scope or actions secrets fine-grained permission This action completely replaces the repository access list. To add or remove individual repositories without affecting others, use the dedicated add/remove repository actions instead.
Set selected repositories for a user secret
Defines the list of repositories permitted to access a specific Codespaces secret for the authenticated user.
Set selected repositories for an organization variable
Replaces the list of repositories that can access an organization-level variable; the variable's visibility must be 'selected'.
Set status check contexts
Replaces required status check contexts for a protected branch, requiring admin permissions; an empty `contexts` array removes all checks.
Set team access restrictions
Replaces the list of teams with push access to a protected branch. This action sets (replaces) the teams that have push access to a protected branch. Unlike 'Add team access restrictions' (POST), this action replaces the entire list rather than adding to it. Use an empty list to remove all team restrictions. Prerequisites: - The repository must be owned by an organization (not a personal account) - The branch must have protection rules enabled - The branch protection must have restrictions configured - The teams must exist in the organization and have repository access
Set user access restrictions
Replaces the list of users with push access to a protected branch in an organization repository. Important notes: - This action only works on organization-owned repositories (not personal repos) - The branch must already have protection rules with restrictions enabled - This REPLACES (not adds to) the existing list of users with push access - Users must have write access to the repository to be added - The combined total of users, apps, and teams is limited to 100 items - To add users without replacing, use the 'add_user_access_restrictions' action instead
Set User Interaction Limit (GraphQL)
Set interaction limits on a specified user's public repositories using GraphQL, temporarily restricting who can comment, open issues, or create pull requests.
Set workflow access level outside repository
Sets the access level for workflows outside a repository to use actions and reusable workflows within that repository.
Start a codespace for the authenticated user
Initiates the startup process for an existing GitHub Codespace (identified by `codespace_name`) if it's in a startable state like 'Available' or 'Stopped'.
Star a gist
Stars a GitHub gist identified by `gist_id`; this action is idempotent and returns a 204 No Content status upon success, even if the gist is already starred.
Star a specified repository (requires owner and repo)
Stars a specified repository (identified by owner and repo name) for the authenticated user; this action is idempotent and succeeds even if the repository is already starred. Requires explicit repository identification via owner and repo parameters.
Stop a codespace for an organization user
Stops a running codespace for an organization member. This action allows organization administrators to stop a codespace that belongs to a member of their organization. The codespace must be in a running state (e.g., 'Available') to be stopped. Required permissions: - OAuth/PAT: admin:org scope - Fine-grained tokens: 'Organization codespaces' (write) or 'Codespaces lifecycle admin' (write) Common HTTP responses: - 200: Codespace successfully stopped, returns codespace object - 304: Not modified (codespace already stopped) - 401: Authentication required - 403: Insufficient permissions (need admin:org) - 404: Organization, user, or codespace not found
Stop a codespace for the authenticated user
Stops a running or available Codespace for the authenticated user, pausing its execution and billing.
Submit a review for a pull request
Finalizes a pending pull request review (identified by `review_id`) with a required `event` (APPROVE, REQUEST_CHANGES, COMMENT) and an optional `body`.
Sync a fork branch with the upstream repository
Synchronizes a branch in a forked GitHub repository with its upstream counterpart, assuming the repository is a fork, the branch exists, an upstream is configured, and the merge is conflict-free.
Test the push repository webhook
Triggers a simulated push event to test a repository's push webhook; a test event is only delivered if the webhook is subscribed to 'push' events, otherwise, it returns 204 No Content without sending a POST.
Transfer a repository
Initiates a repository transfer to a new owner (who must accept the request); if the new owner is an organization, it must be configured to allow transfers.
Unblock a user
Unblocks a GitHub user, provided they are currently blocked by the authenticated user.
Unblock a user from an organization
Unblocks a user from a specified organization. A 404 response is returned as an unsuccessful result indicating that the user was not blocked or the organization or user was not found.
Unfollow a user
Unfollows an existing GitHub user; this action is idempotent, succeeding even if the authenticated user is not currently following them.
Unfollow organization
Tool to unfollow a GitHub organization using GraphQL. Use when you need to stop following a specific organization on GitHub.
Unfollow user
Tool to unfollow a GitHub user using GraphQL. Use when you need to stop following a specific user on GitHub.
Unlock an issue
Unlocks a currently locked GitHub issue in the specified repository, allowing new comments and interactions.
Unlock an organization repository
Unlocks a repository that was locked for migration within a GitHub organization. This action is part of the organization migrations workflow. When you start a migration with `lock_repositories=true`, the source repositories are locked to prevent changes during export. After the migration is complete and applied to the target instance, use this action to unlock the repositories so they can be accessed or deleted. Requirements: - You must be an organization owner to unlock repositories - The repository must be currently locked as part of the specified migration - This endpoint does not work with GitHub App tokens or fine-grained personal access tokens Typical workflow: 1. Start an organization migration with POST /orgs/{org}/migrations 2. Wait for the migration to complete (state: "exported") 3. Apply the migration to your target instance 4. Unlock each migrated repository using this action 5. Delete the source repositories if no longer needed
Unlock a user repository
Unlocks a repository (`repo_name`) that was locked as part of a user migration (`migration_id`), making it usable or deletable; this action requires the repository to be currently locked.
Unstar a gist
Removes a star from the specified gist; the action is idempotent and will not error if the gist was not previously starred by the user.
Unstar a repository
Removes the authenticated user's star from a specified repository, which must already be starred by the user.
Update an environment variable
Updates an existing environment variable's name and/or value in a specific GitHub repository environment; requires providing either a new name or a new value.
Update an issue
Updates an existing GitHub issue's title, body, state, milestone, labels, or assignees. Empty lists can clear labels or assignees; null values are omitted from the update.
Update an issue comment
Updates an existing comment on an issue or pull request within a specified repository. You can only update comments that the authenticated user has permission to edit. The comment_id can be obtained from the list_issue_comments or get_an_issue_comment actions.
Update an organization
Updates an organization's settings; changing security-related fields requires admin, owner, or security manager permissions. Omitted repository-permission, repository-creation, Pages, private-forking, and web-commit signoff settings are sent with the tool's defaults and may change existing settings.
Update an organization variable
Updates an existing GitHub Actions organization variable's name, value, or visibility (`all`, `private`, `selected`), requiring `selected_repository_ids` with valid repository IDs if visibility is `selected`.
Update an organization webhook
Updates an existing organization's webhook configuration, subscribed events, active status, or name. If active status is omitted, the request enables the webhook.
Update a check run
Updates an existing check run for a specific commit in a repository, allowing modifications to its status, conclusion, output, and other details. NOTE: This endpoint requires GitHub App authentication with 'checks:write' permission - OAuth tokens and personal access tokens cannot update check runs.
Update a code scanning alert
Updates a specific code scanning alert in a GitHub repository, primarily to change its state (e.g., 'open' or 'dismissed').
Update a commit comment
Changes the body of an existing commit comment.
Update a custom organization role
The custom organization role update endpoint has been retired. GitHub's current organization roles REST API documents role listing, lookup, and assignment, but no direct replacement for updating a custom role.
Update a deployment branch policy
Updates the name pattern of an existing deployment branch policy for a specific environment in a repository.
Update a discussion
The team discussions endpoint used by this action has been retired. Use GitHub Discussions instead.
Update a discussion comment
The team discussion comments endpoint used by this action has been retired. Use GitHub Discussions instead.
Update a gist
Updates a gist's description, and/or its files (including content, filename changes, or deletion).
Update a gist comment
Updates an existing comment on a specified gist.
Update a label
Updates an existing label's name, color, or description within a specified repository.
Update a milestone
Updates a repository milestone identified by owner, repository, and milestone number. It can modify the title, state, description, or due date; if state is omitted, it is sent as open.
Update a project
Updates an existing GitHub project (V2) attributes like title, description, visibility, and state. Note: This action uses GitHub's Projects V2 GraphQL API. The legacy Projects (classic) REST API was sunset on April 1, 2025. The project is identified by its number (visible in the project URL) and owner (either a username or organization name). If no owner is specified, the authenticated user is assumed. At least one field to update must be provided.
Update a pull request
Updates an existing pull request, allowing changes to attributes like title, body, state, base branch, and maintainer modification settings.
Update a pull request branch
Requests an asynchronous update of an open pull request's head branch by merging its base branch, if mergeable and repository merging is enabled. The result may instead report merge conflicts, an already up-to-date branch, or an expected head SHA mismatch.
Update a reference
Updates an existing Git reference (e.g., a branch or tag) to point to a specific commit SHA. By default, only allows fast-forward updates (where the new commit is a descendant of the current one). Set `force=true` to allow non-fast-forward updates that rewrite history. IMPORTANT: The reference must already exist - use 'Create a reference' action to create new refs.
Update a release
Updates an existing release in a GitHub repository, allowing modification of its attributes; if linking a discussion, the `discussion_category_name` must refer to an existing category in the repository.
Update a release asset
Updates the name, label, or state of a release asset in a GitHub repository, requiring at least one of these properties to be provided for modification.
Update a repository
Updates settings for an existing GitHub repository, such as name, description, visibility, merge strategies, and security configurations.
Update a repository invitation
Updates an active repository invitation to modify the invited user's permissions; the specified repository and invitation must exist.
Update a repository ruleset
Updates an existing repository ruleset, identified by `ruleset_id` for a given repository, allowing partial updates to its configuration such as name, target, enforcement, bypass actors, conditions, and rules.
Update a repository variable
Updates the name and/or value of an existing GitHub Actions variable in a repository.
Update a repository webhook
Updates the URL, content type, secret, SSL verification, events, or active status of an existing repository webhook. The active status defaults to true when omitted.
Update a team
Updates a team's settings (e.g., name, description, privacy, parent team) within a GitHub organization, identified by its slug and organization name.
Update branch protection
Updates branch protection settings for a specific existing repository branch; wildcard branch names are not supported. Unspecified status checks, admin enforcement, pull request reviews, and push restrictions are sent as null and may be disabled; unspecified user, team, or app lists within supplied push restrictions are sent empty.
Update a codespace for the authenticated user
Updates an existing GitHub Codespace's machine type, display name, or recent folders for the authenticated user; machine type changes take effect on the next start.
Update a code scanning default setup configuration
Updates the default setup configuration for code scanning in a repository; GitHub Advanced Security must be enabled for the repository.
Update Git LFS Preference
Sets the Git Large File Storage (LFS) preference for a repository during a source import. NOTE: This endpoint has been deprecated by GitHub as of April 12, 2024, and is no longer available. The Source Imports REST API has been retired due to very low usage levels. Please use the GitHub Importer tool at https://github.com/new/import for repository imports.
Update issue type
Update an existing issue type for a GitHub organization. Requires the authenticated user to be an organization administrator. OAuth tokens need admin:org scope.
Update a webhook configuration for an organization
Updates the configuration (URL, content type, secret, SSL verification) for an existing webhook within a specified organization.
Update an existing project card (Classic - Deprecated)
The Projects (classic) card endpoint used by this action has been retired. Use the REST Projects v2 item endpoints instead.
Update an existing project column (Classic - Deprecated)
Updates the name of an existing column, identified by `column_id`, in a GitHub project (classic). DEPRECATION NOTICE: GitHub Classic Projects (V1) and its REST API were sunset on April 1, 2025. This action will return a 404 error on GitHub.com. For new projects, use GitHub Projects V2 which uses the GraphQL API instead. See: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/
Update pull request creation cap for a repository
Updates the pull request creation cap for a repository. The cap limits the number of open pull requests a user can have at one time. Only users with admin access to the repository can configure the cap.
Update a review for a pull request
Updates the body text of an existing pull request review.
Update a review comment for a pull request
Updates the body of an existing review comment on a pull request.
Update pull request review protection
Updates pull request review protection settings for a branch, including required approvals, review dismissal, and bypass allowances. The last-push approval setting defaults to false and is sent even when omitted; branch protection features must be available for the repository.
Update repository preferences for check suites
Updates repository preferences for automatic Check Suite creation on code pushes, allowing configuration for specific GitHub Apps that must be installed on the repository with `checks:write` permission.
Update a webhook configuration for a repository
Updates the configuration (e.g., payload URL, content type, secret, SSL verification) for an existing webhook in a specified repository.
Update resource access with tokens
Revokes organization access for the personal access tokens identified by `pat_ids`; this action must be performed by a GitHub App, and `pat_ids` must be valid and associated with the organization. AUTHENTICATION REQUIREMENT: This endpoint requires GitHub App authentication with 'Personal access tokens' organization permissions (write). Standard personal access tokens CANNOT use this endpoint. The GitHub App must also have access to the organization.
Update status check protection
Updates required status checks for a branch, optionally requiring it to be up-to-date before merging.
Update Subscription
Tool to update notification subscription state for issues, pull requests, or discussions. Use when you need to subscribe, unsubscribe, or ignore notifications for a specific GitHub item.
Update the authenticated user
Updates the authenticated user's GitHub profile; a new public email must be verified, and existing private emails remain private even if specified.
Revoke Token Organization Access
Revokes a fine-grained personal access token's access to a specified GitHub organization. This operation requires a GitHub App with the organization's 'Personal access tokens' write permission; personal access tokens cannot call it. List the organization's resource access tokens to find the token ID.
Update User List
Tool to update an existing GitHub user list. Use when you need to modify the name, description, or privacy settings of a user list.
Update user lists for item
Tool to update which of the viewer's lists an item belongs to on GitHub. Use when you need to add an item (repository, issue, pull request, etc.) to specific user lists or move it between lists.
Update Project V2 Item for User
Tool to update a field value for an item in a user's GitHub ProjectV2. Use when you need to modify a field value of an existing project item.
Change User Status
Tool to update your status on GitHub. Use when you need to set or clear your GitHub profile status with an emoji, message, and availability indicator.
Upload a release asset
Tool to upload a binary asset to an existing GitHub release. Use when you need to attach files like installers or backups to a release programmatically.
Upload an analysis as sarif data
Uploads a gzipped and Base64 encoded SARIF file to a GitHub repository for a specific commit and reference; use `checkout_uri` if SARIF paths are absolute.
Create or update repository custom property values
Creates or updates up to 30 custom property values for a repository; custom properties must be predefined at the organization or repository level, and setting a property's value to `null` removes it.
Create an issue field
Creates a new issue field for the authenticated user's personal account. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Create an issue type
Creates a new issue type for the authenticated user's personal account. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Delete attestations in bulk
Delete artifact attestations in bulk by either subject digests or unique ID.
Delete attestations by ID
Delete an artifact attestation by unique ID that is associated with a repository owned by a user.
Delete attestations by subject digest
Delete an artifact attestation by subject digest.
Delete an issue field
Deletes an issue field for the authenticated user. The authenticated user must own the issue field. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Delete an issue type
Deletes an issue type for the authenticated user. The authenticated user must own the issue type. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Get a GPG key for the authenticated user
View extended details for a single GPG key. OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint.
Get a public SSH key for the authenticated user
View extended details for a single public SSH key. OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.
Get an SSH signing key for the authenticated user
Gets extended details for an SSH signing key. OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.
List attestations by bulk subject digests
List a collection of artifact attestations associated with any entry in a list of subject digests owned by a user. The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, Pagination is cursor-based: pass `after` to continue forward or `before` to continue backward; `per_page` controls the page size, with a maximum of 100.
List GPG keys for the authenticated user
Lists the current user's GPG keys. OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
List issue fields
Lists all issue fields for the authenticated user. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.
List issue types
Lists all issue types for the authenticated user. OAuth app tokens and personal access tokens (classic) need the `read:user` scope to use this endpoint.
List SSH signing keys for the authenticated user
Lists the SSH signing keys for the authenticated user's GitHub account. OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint. Pagination is explicit: `page` selects the result page and `per_page` controls the number of items returned per page, with a maximum of 100.
Update an issue field
Updates an issue field for the authenticated user. The authenticated user must own the issue field. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Update an issue type
Updates an issue type for the authenticated user. The authenticated user must own the issue type. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
Validate credential
Checks GitHub credentials using the authenticated-user endpoint and returns a validity flag and username when available. A 403 also returns valid=false and may indicate rate limiting or insufficient permissions rather than invalid credentials.
Verify dev container permissions accepted
Verifies if the authenticated user has accepted permissions for a specific devcontainer configuration in a repository, typically to ensure awareness before a codespace is created or used.
Who Am I
Return the identity (login, name) of the connected GitHub account.
Conéctate
Añade GitHub a tu Slack en dos minutos.
Sin flujos que configurar. Activa las herramientas que ya usas y tu agente se pone a trabajar.
Añadir a Slack
1
Añade Sokko a Slack
Un clic desde el marketplace de Slack. Todo tu equipo tiene Sokko de una vez.
2
Conecta tus herramientas
Sokko funciona con más de 1000 apps y cualquier servidor MCP.
Martin
9:53 AM
@Sokko
¿Qué puedes hacer con GitHub?
3
Pon a Sokko a trabajar
@menciona a Sokko en cualquier canal y arranca. Minutos, no un fin de semana.
Preguntas, respondidas.
Sokko es un asistente de IA que vive en tu Slack. Conecta tus apps, pide lo que necesitas en lenguaje natural y Sokko se encarga del trabajo por ti.
Regístrate en Sokko, pídele a Sokko que se conecte a GitHub y aprueba la conexión cuando se te solicite. A partir de ahí puedes pedirle a Sokko que haga cosas en GitHub cuando quieras.
No. No hay nada que crear ni configurar. Le pides a Sokko en Slack igual que se lo pedirías a un colega, y Sokko se encarga del resto.
Sí. Pídelo una vez y dile a Sokko cuándo repetirlo, como cada lunes a las 9 h, y se convierte en una rutina que se ejecuta sin ti.
Leer y actuar sobre los datos de GitHub, y lanzar workflows cuando algo cambia. Dile a Sokko el resultado que quieres y se encarga del resto.
Sí. Sokko se conecta a más de 1.000 apps y a cualquier servidor MCP, así que puedes pedir tareas que abarquen GitHub y el resto de tu stack en una sola petición.