Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Add team access restrictions
GITHUB_ADD_TEAM_ACCESS_RESTRICTIONSAdds 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 user access restrictions
GITHUB_ADD_USER_ACCESS_RESTRICTIONSAdds 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 users to codespaces access for an organization
GITHUB_ADD_USERS_TO_CODESPACES_ACCESS_FOR_ORGANIZATIONAdds 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'.
Approve a workflow run for a fork pull request
GITHUB_APPROVE_WORKFLOW_RUN_FOR_FORK_PULL_REQUESTApproves 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
GITHUB_ASSIGN_ORGANIZATION_ROLE_TO_TEAMAssigns 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
GITHUB_ASSIGN_ORGANIZATION_ROLE_TO_USERAssigns a specific organization role to a user who is a member or an outside collaborator in a GitHub organization, using a valid role ID.
Block a user
GITHUB_BLOCK_USERBlocks 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
GITHUB_BLOCK_USER_FROM_ORGANIZATIONBlocks 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.
Cancel a GitHub Pages deployment
GITHUB_CANCEL_GITHUB_PAGES_DEPLOYMENTCancels an existing, ongoing or queued GitHub Pages deployment for a repository using its `pages_deployment_id`.
Cancel sponsorship
GITHUB_CANCEL_SPONSORSHIPTool 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
GITHUB_CANCEL_WORKFLOW_RUNRequests 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.
Clear Project V2 Item Field Value
GITHUB_CLEAR_PROJECT_V2_ITEM_FIELD_VALUETool 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 self-hosted runner org labels
GITHUB_CLEAR_SELF_HOSTED_RUNNER_ORG_LABELSRemoves all custom labels from a self-hosted runner for an organization; default labels (e.g., 'self-hosted', 'linux', 'x64') will remain.
Close an issue
GITHUB_CLOSE_ISSUEClose 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
GITHUB_CLOSE_PULL_REQUESTCloses 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.
Configure OIDC subject claim template
GITHUB_CONFIGURE_OIDC_SUBJECT_CLAIM_TEMPLATESets 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
GITHUB_CONVERT_ORG_MEMBER_TO_OUTSIDE_COLLABORATORConverts 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
GITHUB_CONVERT_PULL_REQUEST_TO_DRAFTConverts 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.
Create a scoped access token
GITHUB_CREATE_A_SCOPED_ACCESS_TOKENCreates 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 commit signature protection
GITHUB_CREATE_COMMIT_SIGNATURE_PROTECTIONEnables commit signature protection for a specified branch, requiring all new commits to be signed.