Skip to content

Integrations

GitHub connector

Manage GitHub repositories, issues, pull requests, Actions, releases, environments, teams and webhooks from workflows, agents, the API and MCP, with a personal access token or a GitHub App.

Last updated 13 min read Edit this page on GitHub
On this page

The GitHub connector gives workflows, agents, the API, MCP and the CLI about 180 ready-made GitHub actions: repositories and their settings, branches and protection, files, issues, pull requests, releases, Actions (runs, logs, secrets, variables), environments and deployment approvals, organizations, teams, webhooks, search and security alerts. It works with github.com, GitHub Enterprise Server and GHE.com.

Typical uses:

  • An approval workflow that creates a repository from a template, adds the requesting team and sets branch protection after a manager approves.
  • Running a deploy workflow (Run Workflow (Dispatch)), waiting for it, and approving the protected environment from a UserTasks task.
  • An agent that triages new issues (labels, assignees, comments) and asks a person before it does anything destructive.
  • Rotating an Actions secret from a secret-rotation workflow.

Set up#

  1. Go to Integrations → Connectors and choose GitHub.
  2. Leave GitHub server URL empty for github.com. For GitHub Enterprise Server enter the server address, for example https://github.example.com (/api/v3 is added for you). For GHE.com enter https://<name>.ghe.com.
  3. Optional: set Default owner, Default repository and Default organization. Actions use them when their owner, repo or org input is empty.
  4. Choose Authentication and fill in the credentials (below).
  5. Click Test connection.
The GitHub connector dialog: Authentication set to a personal access token (masked), an optional webhook secret, the server URL left empty for github.com and the default owner
The GitHub connector with a personal access token. Saved secrets are masked.

A GitHub App gets short-lived installation tokens, is installed on only the repositories it needs, and its actions show as the App in GitHub's audit log.

  1. In GitHub, go to Settings → Developer settings → GitHub Apps → New GitHub App (for an organization: the organization's Settings → Developer settings). A webhook URL is not required.
  2. Give it the permissions you need (see Permissions), then Create GitHub App.
  3. Note the App ID. Under Private keys, click Generate a private key and keep the downloaded .pem file.
  4. Install App on the account or organization, and choose the repositories. The installation ID is the number at the end of the installation's Configure page URL (…/settings/installations/12345678).
  5. In UserTasks, choose GitHub App, enter the App ID and installation ID and paste the whole .pem file into App private key.

UserTasks signs a 10-minute RS256 JWT with the key, exchanges it for an installation token and reuses the token until a minute before it expires. A token GitHub rejects is replaced once automatically. The key is stored encrypted and is never shown again or logged.

Personal access token#

Create a fine-grained token (Settings → Developer settings → Personal access tokens → Fine-grained tokens): choose the resource owner, select only the repositories it needs and grant the permissions below. Classic tokens work too; they need the repo scope, and workflow, admin:org or delete_repo for those actions. For an organization that uses SAML single sign-on, authorize the token for the organization. Test connection shows the token's expiry date when GitHub reports one.

Permissions#

Grant only what your workflows use.

AreaGitHub App / fine-grained permission
EverythingRepository Metadata: read
Files, branches, tags, releasesContents: read, or write to change
Issues, labels, milestonesIssues: read or write
Pull requests and reviewsPull requests: read or write
Workflows, runs, logs, artifactsActions: read; write to run, re-run, cancel, enable or delete
Actions secrets / variablesSecrets / Variables: write (repository or organization)
Environments, deployment approvalsEnvironments and Deployments: write
Commit statuses, check runsCommit statuses: write; Checks: read
Repository settings, collaborators, branch protection, rulesets, deleting repositoriesAdministration: write
WebhooksWebhooks: write (repository or organization)
Members, invitations, teamsOrganization Members: read or write
Security alertsDependabot alerts, Code scanning alerts, Secret scanning alerts: read

Connection test#

Test connection calls GET /user (token) or GET /installation/repositories (App), then checks that the default repository and organization are visible. The message says which problem it found:

  • bad credentials: the token or App key is wrong, expired or revoked;
  • installation not found: the installation ID is wrong or the App was uninstalled;
  • missing permission: GitHub's X-Accepted-GitHub-Permissions header names what is missing;
  • not found: the repository does not exist, or the credentials cannot see it (GitHub answers 404 for private resources you have no access to);
  • SSO: the organization requires the token to be authorized for SAML single sign-on;
  • could not reach: the server URL is wrong, or a GitHub Enterprise Server on a private network is not allowed by EGRESS_PRIVATE_ALLOW.

Safety#

Every action has a risk: Read, Write or Destructive. Destructive actions delete things (repositories, branches, files, releases, runs, labels), change who has access (collaborators, members, invitations, teams, team repositories, branch protection, rulesets, environments, webhooks), write secrets, approve deployments, or are open-ended (Call Any GitHub REST API, GitHub GraphQL Query).

  • Agents always ask a person before a destructive action runs: the run pauses and the reviewer gets an Approve / Reject task. This cannot be turned off for that tool. With Every tool that changes data on, read actions run without approval.
  • MCP: integrations_execute_reference refuses a destructive reference unless the call includes confirm: true.
  • Secrets are encrypted on the server with GitHub's public key for the repository, organization or environment (a libsodium sealed box) before they are sent. The plain value is never stored, never logged and never returned. GitHub itself never returns secret values. Inputs that carry secrets (secret_value, webhook_secret) are masked in the integration call log.
  • Secret scanning alerts are listed with the leaked values hidden.
  • owner, repo, org, team_slug and username must be single names. A value with / is refused, so an input cannot point a call at another API.
An agent's Tools tab with five GitHub references: list issues and get issue, add labels and create an issue comment marked as writing data, and delete branch marked destructive, approved by a person on every call
An agent's GitHub tools. Delete branch is destructive, so a person approves every call.

How calls behave#

  • Paging: list actions take per_page (up to 100) and page, and return items, count, next_page and has_more (and total_count where GitHub reports it). Set all_pages to follow GitHub's Link header and return every item up to max_items (default 1,000, at most 5,000, 50 pages).
  • Rate limits: when GitHub answers with its primary or secondary rate limit (403 or 429 with Retry-After or X-RateLimit-Reset), the call waits and retries if the wait is under a minute and fits the call's timeout. Otherwise it fails with error_code rate_limited and the time the limit resets. 502, 503 and 504 answers are retried for reads only.
  • Errors: a failed call returns GitHub's status and body, plus error_code (bad_credentials, missing_permission, forbidden, not_found, validation_failed, conflict, rate_limited, server_error), GitHub's request ID, and an error_message that says what to fix. Validation errors list the fields GitHub rejected.
  • Files: Create Or Update File takes plain text (or base64 with content_encoding: base64), and looks up the current file's sha when you leave sha empty, so one action both creates and updates. Get File Contents returns the text in decoded_content.
  • Branches and tags start from from_ref (a branch, tag or commit; default: the default branch) unless you pass an exact sha.
  • Set … Variable updates a variable, or creates it when it does not exist.
  • Logs, archives and artifacts return a download_url that GitHub expires after about a minute, instead of the file.
  • Arrays (labels, assignees, reviewers, topics, events, repository IDs) accept a JSON array or comma-separated text.

GitHub webhooks as a workflow trigger#

A GitHub webhook can start a workflow that has a Webhook trigger.

  1. On the GitHub connector, set Webhook secret to a long random value.
  2. Create the workflow with a Webhook trigger and note its webhook slug.
  3. In GitHub, add a webhook (repository or organization Settings → Webhooks, or the Create Repository Webhook action) with:
    • Payload URL: https://<your UserTasks address>/api/webhooks/github/<integration id>?hook=<webhook slug>. Add &events=push,pull_request to start the workflow for only those events.
    • Content type: application/json.
    • Secret: the same webhook secret.

Every delivery is checked against X-Hub-Signature-256 before it is read. Unsigned or wrongly signed deliveries get 401. Each X-GitHub-Delivery starts at most one run, so a redelivery of a processed delivery is acknowledged and ignored. On a self-hosted install with the default in-memory cache, this check is per server instance. Configure a shared cache (Postgres or Redis) to dedupe across instances. ping events are answered without starting anything.

The run gets the payload's fields as variables, plus github_event, github_delivery, github_action, github_repository and github_sender. The webhook's payload mappings apply as usual.

Example: approved repository creation#

  1. Form trigger: team, repository name, visibility.
  2. Approval task for the platform team.
  3. Call Reference → GitHub: Create Repository From Template with template_owner: acme, template_repo: service-template, owner: acme, name: {{form.repo_name}}, private: true.
  4. GitHub: Add Or Update Team Repository with team_slug: {{form.team}}, permission: maintain.
  5. GitHub: Update Branch Protection on main with a protection object that requires one review and the ci check.

Limits and what is not included#

  • Release asset uploads (they use a separate upload host) and Git LFS are not included. Use Call Any GitHub REST API for other REST endpoints on the same server.
  • GitHub Projects, Codespaces, Packages and Copilot management are not included as actions. Use GitHub GraphQL Query or Call Any GitHub REST API.
  • Dependabot, code scanning and secret scanning alerts are read-only.

Actions#

ActionRequestRiskInputs (* required)Outputs
Get Authenticated User: The user the personal access token belongs to (not available with GitHub App authentication).GET /userRead(none)login, id, name, email, html_url
Get Rate Limit: Current REST, GraphQL and search rate-limit usage for these credentials (does not count against the limit).GET /rate_limitRead(none)resources, rate
Get User: Public profile of a GitHub user.GET /users/{{username}}Readusername*login, id, name, company, html_url, type
List Organization Repositories: Repositories of an organization.GET /orgs/{{org}}/reposReadorg*, type, sort, direction, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List My Repositories: Repositories the token's user can access (personal access tokens).GET /user/reposReadvisibility, affiliation, sort, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List Installation Repositories: Repositories the GitHub App installation can access (GitHub App authentication).GET /installation/repositoriesReadper_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Get Repository: Repository details: visibility, default branch, settings and the token's permissions on it.GET /repos/{{owner}}/{{repo}}Readowner, repoid, name, full_name, html_url, private, visibility, default_branch, archived, owner, permissions
Create Organization Repository: Create a repository in an organization.POST /orgs/{{org}}/reposWriteorg, name, description, visibility, auto_init, gitignore_template, license_template, team_id, has_issues, has_wiki, delete_branch_on_mergeid, name, full_name, html_url, private, visibility, default_branch, archived, owner
Create My Repository: Create a repository owned by the token's user.POST /user/reposWritename*, description, private, auto_initid, name, full_name, html_url, private, visibility, default_branch, archived, owner
Create Repository From Template: Create a repository from a template repository.POST /repos/{{template_owner}}/{{template_repo}}/generateWritetemplate_owner, template_repo, owner, name, description, private, include_all_branchesid, name, full_name, html_url, private, visibility, default_branch, archived, owner
Update Repository: Change repository settings (name, description, visibility, default branch, merge options, archived).PATCH /repos/{{owner}}/{{repo}}Writeowner, repo, name, description, homepage, visibility, default_branch, has_issues, has_projects, has_wiki, allow_squash_merge, allow_merge_commit, allow_rebase_merge, delete_branch_on_merge, archivedid, name, full_name, html_url, private, visibility, default_branch, archived, owner
Archive Repository: Archive a repository (read-only; unarchive with Update Repository archived=false).PATCH /repos/{{owner}}/{{repo}}Writeowner, repoid, name, full_name, html_url, private, visibility, default_branch, archived, owner
Delete Repository: Permanently delete a repository and everything in it. Needs the delete_repo / Administration permission.DELETE /repos/{{owner}}/{{repo}}Destructiveowner, reposuccess
Transfer Repository: Transfer a repository to another user or organization (changes who owns and can access it).POST /repos/{{owner}}/{{repo}}/transferDestructiveowner, repo, new_owner*, new_nameid, name, full_name, html_url, private, visibility, default_branch, archived, owner
Get Repository Topics: The repository's topics.GET /repos/{{owner}}/{{repo}}/topicsReadowner, reponames
Replace Repository Topics: Replace all topics (lowercase, comma-separated or a JSON array).PUT /repos/{{owner}}/{{repo}}/topicsWriteowner, repo, names*names
List Collaborators: People with access to the repository, with their permissions.GET /repos/{{owner}}/{{repo}}/collaboratorsReadowner, repo, affiliation, permission, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Add Collaborator: Invite a user to the repository or change their permission (grants access).PUT /repos/{{owner}}/{{repo}}/collaborators/{{username}}Destructiveowner, repo, username*, permissionid, invitee, permissions, html_url, success
Remove Collaborator: Remove a user's access to the repository.DELETE /repos/{{owner}}/{{repo}}/collaborators/{{username}}Destructiveowner, repo, username*success
List Repository Teams: Teams with access to the repository.GET /repos/{{owner}}/{{repo}}/teamsReadowner, repo, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Branch Protection: Protection rules of a branch.GET /repos/{{owner}}/{{repo}}/branches/{{branch}}/protectionReadowner, repo, branch*required_status_checks, enforce_admins, required_pull_request_reviews, restrictions
Update Branch Protection: Replace a branch's protection rules. protection is the whole JSON body GitHub expects: required_status_checks, enforce_admins, required_pull_request_reviews and restrictions (null to turn one off).PUT /repos/{{owner}}/{{repo}}/branches/{{branch}}/protectionDestructiveowner, repo, branch, protectionrequired_status_checks, enforce_admins, required_pull_request_reviews
Delete Branch Protection: Remove every protection rule from a branch.DELETE /repos/{{owner}}/{{repo}}/branches/{{branch}}/protectionDestructiveowner, repo, branch*success
List Repository Rulesets: Rulesets that apply to the repository.GET /repos/{{owner}}/{{repo}}/rulesetsReadowner, repo, includes_parents, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Repository Ruleset: One ruleset with its rules and bypass list.GET /repos/{{owner}}/{{repo}}/rulesets/{{ruleset_id}}Readowner, repo, ruleset_id*id, name, enforcement, target, conditions, rules, bypass_actors
Create Repository Ruleset: Create a ruleset. ruleset is the JSON body: name, target, enforcement, conditions, rules, bypass_actors.POST /repos/{{owner}}/{{repo}}/rulesetsWriteowner, repo, ruleset*id, name, enforcement
Update Repository Ruleset: Change a ruleset (rules, enforcement, bypass list).PUT /repos/{{owner}}/{{repo}}/rulesets/{{ruleset_id}}Destructiveowner, repo, ruleset_id, rulesetid, name, enforcement
Delete Repository Ruleset: Delete a ruleset.DELETE /repos/{{owner}}/{{repo}}/rulesets/{{ruleset_id}}Destructiveowner, repo, ruleset_id*success
List Organization Rulesets: Rulesets defined for the organization.GET /orgs/{{org}}/rulesetsReadorg*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List Branches: Branches of a repository.GET /repos/{{owner}}/{{repo}}/branchesReadowner, repo, protected, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Branch: A branch with its head commit and protection summary.GET /repos/{{owner}}/{{repo}}/branches/{{branch}}Readowner, repo, branch*name, commit, protected, protection
Create Branch: Create a branch from another branch, tag or commit (from_ref; default: the default branch) or an exact sha.POST /repos/{{owner}}/{{repo}}/git/refsWriteowner, repo, branch*, from_ref, sharef, object, url
Delete Branch: Delete a branch.DELETE /repos/{{owner}}/{{repo}}/git/refs/heads/{{branch}}Destructiveowner, repo, branch*success
Rename Branch: Rename a branch (open pull requests and protection rules follow).POST /repos/{{owner}}/{{repo}}/branches/{{branch}}/renameWriteowner, repo, branch, new_namename, commit
Merge Branch: Merge head into base with a merge commit (204: already merged).POST /repos/{{owner}}/{{repo}}/mergesWriteowner, repo, base, head, commit_messagesha, html_url, success
List Commits: Commits on a branch, optionally for one path, author or time range.GET /repos/{{owner}}/{{repo}}/commitsReadowner, repo, sha, path, author, since, until, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Commit: A commit with its files and stats.GET /repos/{{owner}}/{{repo}}/commits/{{ref}}Readowner, repo, ref*sha, commit, author, files, stats, html_url
Compare Commits: Commits and files between two refs (base...head).GET /repos/{{owner}}/{{repo}}/compare/{{base}}...{{head}}Readowner, repo, base, headstatus, ahead_by, behind_by, total_commits, commits, files, html_url
Get Combined Commit Status: Combined state of a ref's commit statuses (success, failure, pending).GET /repos/{{owner}}/{{repo}}/commits/{{ref}}/statusReadowner, repo, ref*state, statuses, total_count, sha
Create Commit Status: Set a status on a commit (shown on pull requests; can gate merges).POST /repos/{{owner}}/{{repo}}/statuses/{{sha}}Writeowner, repo, sha, state, context, description, target_urlid, state, context, created_at
List Check Runs For Ref: Check runs (CI results) for a commit, branch or tag.GET /repos/{{owner}}/{{repo}}/commits/{{ref}}/check-runsReadowner, repo, ref*, check_name, status, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Get File Contents: A file (decoded_content holds its text; binary files set is_binary) or a directory listing.GET /repos/{{owner}}/{{repo}}/contents/{{path}}Readowner, repo, path*, refname, path, sha, size, type, decoded_content, is_binary, html_url
Create Or Update File: Commit a file. Text is base64-encoded for you (content_encoding=base64 for bytes); an existing file's sha is looked up when omitted.PUT /repos/{{owner}}/{{repo}}/contents/{{path}}Writeowner, repo, path, message, content*, content_encoding, branch, sha, committercontent, commit
Delete File: Delete a file in a commit (its sha is looked up when omitted).DELETE /repos/{{owner}}/{{repo}}/contents/{{path}}Destructiveowner, repo, path, message, branch, shacontent, commit
Get Repository Archive URL: A short-lived download URL for a zip of the repository at a ref.GET /repos/{{owner}}/{{repo}}/zipball/{{ref}}Readowner, repo, ref*download_url, expires_in_seconds
List Issues: Issues (and pull requests) of a repository.GET /repos/{{owner}}/{{repo}}/issuesReadowner, repo, state, labels, assignee, creator, milestone, since, sort, direction, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Issue: One issue with its labels, assignees and milestone.GET /repos/{{owner}}/{{repo}}/issues/{{issue_number}}Readowner, repo, issue_number*id, number, title, state, html_url, body, user, labels, assignees, milestone
Create Issue: Open an issue.POST /repos/{{owner}}/{{repo}}/issuesWriteowner, repo, title*, body, assignees, labels, milestoneid, number, title, state, html_url, body, user, labels, assignees, milestone
Update Issue: Change an issue's title, body, state, labels, assignees or milestone.PATCH /repos/{{owner}}/{{repo}}/issues/{{issue_number}}Writeowner, repo, issue_number*, title, body, state, state_reason, assignees, labels, milestoneid, number, title, state, html_url, body, user, labels, assignees, milestone
Close Issue: Close an issue.PATCH /repos/{{owner}}/{{repo}}/issues/{{issue_number}}Writeowner, repo, issue_number*, state_reasonid, number, title, state, html_url, body, user, labels, assignees, milestone
Lock Issue Conversation: Lock an issue or pull request conversation.PUT /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/lockWriteowner, repo, issue_number*, lock_reasonsuccess
List Issue Comments: Comments on an issue or pull request.GET /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/commentsReadowner, repo, issue_number*, since, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Issue Comment: Comment on an issue or pull request.POST /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/commentsWriteowner, repo, issue_number, bodyid, body, html_url, user, created_at
Update Issue Comment: Edit a comment.PATCH /repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}Writeowner, repo, comment_id, bodyid, body, html_url, user, created_at
Delete Issue Comment: Delete a comment.DELETE /repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}Destructiveowner, repo, comment_id*success
Add Labels: Add labels to an issue or pull request.POST /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labelsWriteowner, repo, issue_number, labelsitems
Set Labels: Replace all labels of an issue or pull request.PUT /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labelsWriteowner, repo, issue_number, labelsitems
Remove Label: Remove one label from an issue or pull request.DELETE /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels/{{name}}Writeowner, repo, issue_number, nameitems
List Repository Labels: Labels defined in the repository.GET /repos/{{owner}}/{{repo}}/labelsReadowner, repo, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Label: Create a label.POST /repos/{{owner}}/{{repo}}/labelsWriteowner, repo, name*, color, descriptionid, name, color
Delete Label: Delete a label from the repository (and every issue).DELETE /repos/{{owner}}/{{repo}}/labels/{{name}}Destructiveowner, repo, name*success
Add Assignees: Assign people to an issue or pull request.POST /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/assigneesWriteowner, repo, issue_number, assigneesid, number, title, state, html_url, body, user, labels, assignees, milestone
Remove Assignees: Unassign people from an issue or pull request.DELETE /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/assigneesWriteowner, repo, issue_number, assigneesid, number, title, state, html_url, body, user, labels, assignees, milestone
List Milestones: Milestones of a repository.GET /repos/{{owner}}/{{repo}}/milestonesReadowner, repo, state, sort, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Milestone: Create a milestone.POST /repos/{{owner}}/{{repo}}/milestonesWriteowner, repo, title*, description, due_on, statenumber, title, state, html_url, due_on
Update Milestone: Change or close a milestone.PATCH /repos/{{owner}}/{{repo}}/milestones/{{milestone_number}}Writeowner, repo, milestone_number*, title, description, due_on, statenumber, title, state, html_url
Delete Milestone: Delete a milestone.DELETE /repos/{{owner}}/{{repo}}/milestones/{{milestone_number}}Destructiveowner, repo, milestone_number*success
List Pull Requests: Pull requests of a repository.GET /repos/{{owner}}/{{repo}}/pullsReadowner, repo, state, head, base, sort, direction, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Pull Request: One pull request with its merge state.GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}Readowner, repo, pull_number*id, number, title, state, html_url, draft, merged, mergeable, head, base, mergeable_state, additions, deletions, changed_files
Get Pull Request Diff: The pull request as a unified diff (text).GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}Readowner, repo, pull_number*text
Create Pull Request: Open a pull request from head into base.POST /repos/{{owner}}/{{repo}}/pullsWriteowner, repo, title, head, base*, body, draft, maintainer_can_modifyid, number, title, state, html_url, draft, merged, mergeable, head, base
Update Pull Request: Change title, body, base or state (close / reopen).PATCH /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}Writeowner, repo, pull_number*, title, body, state, baseid, number, title, state, html_url, draft, merged, mergeable, head, base
Merge Pull Request: Merge a pull request (merge, squash or rebase). Pass sha to merge only if the head has not moved.PUT /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/mergeWriteowner, repo, pull_number*, merge_method, commit_title, commit_message, shasha, merged, message
Update Pull Request Branch: Merge the base branch into the pull request's head branch.PUT /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/update-branchWriteowner, repo, pull_number*, expected_head_shamessage, url
List Pull Request Files: Files changed by a pull request, with patches.GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/filesReadowner, repo, pull_number*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List Pull Request Commits: Commits in a pull request.GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/commitsReadowner, repo, pull_number*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List Pull Request Reviews: Reviews on a pull request (APPROVED, CHANGES_REQUESTED …).GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviewsReadowner, repo, pull_number*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Pull Request Review: Review a pull request: APPROVE, REQUEST_CHANGES or COMMENT (with optional line comments).POST /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviewsWriteowner, repo, pull_number, event, body, commit_id, commentsid, state, html_url, submitted_at
Request Reviewers: Ask people or teams to review a pull request.POST /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewersWriteowner, repo, pull_number*, reviewers, team_reviewersid, number, title, state, html_url, draft, merged, mergeable, head, base
Remove Requested Reviewers: Withdraw review requests.DELETE /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewersWriteowner, repo, pull_number, reviewers, team_reviewersid, number, title, state, html_url, draft, merged, mergeable, head, base
List Releases: Releases of a repository, newest first.GET /repos/{{owner}}/{{repo}}/releasesReadowner, repo, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Release: One release with its assets.GET /repos/{{owner}}/{{repo}}/releases/{{release_id}}Readowner, repo, release_id*id, tag_name, name, html_url, draft, prerelease, body, created_at, assets
Get Latest Release: The latest published (non-draft, non-prerelease) release.GET /repos/{{owner}}/{{repo}}/releases/latestReadowner, repoid, tag_name, name, html_url, draft, prerelease, body, created_at, assets
Get Release By Tag: The release for a tag.GET /repos/{{owner}}/{{repo}}/releases/tags/{{tag}}Readowner, repo, tag*id, tag_name, name, html_url, draft, prerelease, body, created_at, assets
Create Release: Publish a release (creates the tag from target_commitish when it does not exist).POST /repos/{{owner}}/{{repo}}/releasesWriteowner, repo, tag_name*, target_commitish, name, body, draft, prerelease, generate_release_notes, make_latestid, tag_name, name, html_url, draft, prerelease, body, created_at
Update Release: Edit or publish a release.PATCH /repos/{{owner}}/{{repo}}/releases/{{release_id}}Writeowner, repo, release_id*, tag_name, name, body, draft, prerelease, make_latestid, tag_name, name, html_url, draft, prerelease, body, created_at
Delete Release: Delete a release (the tag stays).DELETE /repos/{{owner}}/{{repo}}/releases/{{release_id}}Destructiveowner, repo, release_id*success
Generate Release Notes: Release notes GitHub would write for a tag (nothing is created).POST /repos/{{owner}}/{{repo}}/releases/generate-notesReadowner, repo, tag_name*, previous_tag_name, target_commitishname, body
List Tags: Tags of a repository.GET /repos/{{owner}}/{{repo}}/tagsReadowner, repo, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Tag: Create a lightweight tag at a branch, tag or commit (from_ref; default: the default branch) or an exact sha.POST /repos/{{owner}}/{{repo}}/git/refsWriteowner, repo, tag*, from_ref, sharef, object, url
Delete Tag: Delete a tag.DELETE /repos/{{owner}}/{{repo}}/git/refs/tags/{{tag}}Destructiveowner, repo, tag*success
List Workflows: GitHub Actions workflows of a repository.GET /repos/{{owner}}/{{repo}}/actions/workflowsReadowner, repo, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Get Workflow: A workflow by ID or file name (e.g. deploy.yml).GET /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}Readowner, repo, workflow_id*id, name, path, state, html_url
Run Workflow (Dispatch): Start a workflow that has a workflow_dispatch trigger.POST /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/dispatchesWriteowner, repo, workflow_id, ref, inputssuccess
Enable Workflow: Enable a disabled workflow.PUT /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/enableWriteowner, repo, workflow_id*success
Disable Workflow: Disable a workflow (it stops running).PUT /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/disableWriteowner, repo, workflow_id*success
List Workflow Runs: Runs of all workflows in a repository, filtered by branch, actor, event or status.GET /repos/{{owner}}/{{repo}}/actions/runsReadowner, repo, branch, actor, event, status, created, head_sha, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
List Runs For Workflow: Runs of one workflow.GET /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/runsReadowner, repo, workflow_id*, branch, status, event, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Get Workflow Run: A run with its status and conclusion.GET /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}Readowner, repo, run_id*id, name, status, conclusion, html_url, head_branch, head_sha, run_number, event, created_at
List Workflow Run Jobs: Jobs of a run with their steps.GET /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/jobsReadowner, repo, run_id*, filter, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Re-run Workflow Run: Re-run every job of a run.POST /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/rerunWriteowner, repo, run_id*, enable_debug_loggingsuccess
Re-run Failed Jobs: Re-run only the failed jobs of a run.POST /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/rerun-failed-jobsWriteowner, repo, run_id*, enable_debug_loggingsuccess
Cancel Workflow Run: Cancel a queued or running run.POST /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/cancelWriteowner, repo, run_id*success
Delete Workflow Run: Delete a completed run and its logs.DELETE /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}Destructiveowner, repo, run_id*success
Get Workflow Run Logs URL: A short-lived URL to download the run's logs (zip).GET /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/logsReadowner, repo, run_id*download_url, expires_in_seconds
Get Job Logs URL: A short-lived URL to download one job's log (text).GET /repos/{{owner}}/{{repo}}/actions/jobs/{{job_id}}/logsReadowner, repo, job_id*download_url, expires_in_seconds
List Artifacts: Build artifacts of a repository.GET /repos/{{owner}}/{{repo}}/actions/artifactsReadowner, repo, name, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Get Artifact Download URL: A short-lived URL to download an artifact (zip).GET /repos/{{owner}}/{{repo}}/actions/artifacts/{{artifact_id}}/zipReadowner, repo, artifact_id*download_url, expires_in_seconds
List Pending Deployments: Environments a run is waiting on for approval.GET /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/pending_deploymentsReadowner, repo, run_id*items
Approve Or Reject Deployment: Approve or reject a run's pending deployments to protected environments (the caller must be a required reviewer).POST /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/pending_deploymentsDestructiveowner, repo, run_id, environment_ids, state, commentitems
List Repository Secrets: Names and dates of a repository's Actions secrets (never the values).GET /repos/{{owner}}/{{repo}}/actions/secretsReadowner, repo, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Set Repository Secret: Create or update a repository Actions secret.PUT /repos/{{owner}}/{{repo}}/actions/secrets/{{secret_name}}Destructiveowner, repo, secret_name, secret_valuesuccess
Delete Repository Secret: Delete a repository Actions secret.DELETE /repos/{{owner}}/{{repo}}/actions/secrets/{{secret_name}}Destructiveowner, repo, secret_name*success
List Organization Secrets: Organization Actions secrets (names, visibility; never the values).GET /orgs/{{org}}/actions/secretsReadorg*, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Set Organization Secret: Create or update an organization Actions secret.PUT /orgs/{{org}}/actions/secrets/{{secret_name}}Destructiveorg, secret_name, secret_value, visibility, selected_repository_idssuccess
Delete Organization Secret: Delete an organization Actions secret.DELETE /orgs/{{org}}/actions/secrets/{{secret_name}}Destructiveorg, secret_namesuccess
List Environment Secrets: Secrets of a deployment environment (names only).GET /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secretsReadowner, repo, environment_name*, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Set Environment Secret: Create or update a deployment environment secret.PUT /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets/{{secret_name}}Destructiveowner, repo, environment_name, secret_name, secret_value*success
Delete Environment Secret: Delete a deployment environment secret.DELETE /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets/{{secret_name}}Destructiveowner, repo, environment_name, secret_namesuccess
Set Dependabot Secret: Create or update a repository Dependabot secret.PUT /repos/{{owner}}/{{repo}}/dependabot/secrets/{{secret_name}}Destructiveowner, repo, secret_name, secret_valuesuccess
List Repository Variables: Actions variables of a repository, with values.GET /repos/{{owner}}/{{repo}}/actions/variablesReadowner, repo, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Set Repository Variable: Create or update a repository Actions variable.PATCH /repos/{{owner}}/{{repo}}/actions/variables/{{variable_name}}Writeowner, repo, variable_name, valuesuccess, created
Delete Repository Variable: Delete a repository Actions variable.DELETE /repos/{{owner}}/{{repo}}/actions/variables/{{variable_name}}Destructiveowner, repo, variable_name*success
List Organization Variables: Actions variables of an organization.GET /orgs/{{org}}/actions/variablesReadorg*, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Set Organization Variable: Create or update an organization Actions variable.PATCH /orgs/{{org}}/actions/variables/{{variable_name}}Writeorg, variable_name, value*, visibility, selected_repository_idssuccess, created
Delete Organization Variable: Delete an organization Actions variable.DELETE /orgs/{{org}}/actions/variables/{{variable_name}}Destructiveorg, variable_namesuccess
List Environment Variables: Variables of a deployment environment.GET /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variablesReadowner, repo, environment_name*, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Set Environment Variable: Create or update a deployment environment variable.PATCH /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables/{{variable_name}}Writeowner, repo, environment_name, variable_name, value*success, created
Delete Environment Variable: Delete a deployment environment variable.DELETE /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables/{{variable_name}}Destructiveowner, repo, environment_name, variable_namesuccess
Get Repository Variable: One repository Actions variable.GET /repos/{{owner}}/{{repo}}/actions/variables/{{variable_name}}Readowner, repo, variable_name*name, value, created_at, updated_at
List Environments: Deployment environments of a repository with their protection rules.GET /repos/{{owner}}/{{repo}}/environmentsReadowner, repo, per_page, page, all_pages, max_itemstotal_count, items, count, next_page, has_more
Get Environment: One environment with its protection rules and reviewers.GET /repos/{{owner}}/{{repo}}/environments/{{environment_name}}Readowner, repo, environment_name*id, name, protection_rules, deployment_branch_policy, html_url
Create Or Update Environment: Create an environment or change its protection rules (wait timer, required reviewers, branch policy).PUT /repos/{{owner}}/{{repo}}/environments/{{environment_name}}Destructiveowner, repo, environment_name*, wait_timer, prevent_self_review, reviewers, deployment_branch_policyid, name, protection_rules
Delete Environment: Delete an environment with its secrets and protection rules.DELETE /repos/{{owner}}/{{repo}}/environments/{{environment_name}}Destructiveowner, repo, environment_name*success
List Deployments: Deployments of a repository.GET /repos/{{owner}}/{{repo}}/deploymentsReadowner, repo, environment, ref, sha, task, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Deployment: Record a deployment of a ref to an environment (your deploy tooling picks it up through webhooks).POST /repos/{{owner}}/{{repo}}/deploymentsWriteowner, repo, ref*, environment, description, task, auto_merge, required_contexts, payloadid, sha, ref, environment, created_at
Create Deployment Status: Report a deployment's progress: in_progress, success, failure, error, inactive, queued or pending.POST /repos/{{owner}}/{{repo}}/deployments/{{deployment_id}}/statusesWriteowner, repo, deployment_id, state, description, environment_url, log_url, auto_inactiveid, state, created_at
List Deployment Statuses: Status history of a deployment.GET /repos/{{owner}}/{{repo}}/deployments/{{deployment_id}}/statusesReadowner, repo, deployment_id*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Organization: Organization profile and settings.GET /orgs/{{org}}Readorg*login, id, name, plan, html_url, two_factor_requirement_enabled
List Organization Members: Members of an organization.GET /orgs/{{org}}/membersReadorg*, role, filter, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Organization Membership: A user's membership state and role in the organization.GET /orgs/{{org}}/memberships/{{username}}Readorg, usernamestate, role, user
Add Or Update Organization Member: Invite a user to the organization or change their role (member or admin).PUT /orgs/{{org}}/memberships/{{username}}Destructiveorg, username, rolestate, role, user
Remove Organization Member: Remove a user from the organization (and its teams and repositories).DELETE /orgs/{{org}}/memberships/{{username}}Destructiveorg, usernamesuccess
List Pending Invitations: Pending organization invitations.GET /orgs/{{org}}/invitationsReadorg*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Invite To Organization: Invite someone by GitHub user ID or email.POST /orgs/{{org}}/invitationsDestructiveorg*, invitee_id, email, role, team_idsid, login, email, role, created_at
Cancel Invitation: Cancel a pending organization invitation.DELETE /orgs/{{org}}/invitations/{{invitation_id}}Destructiveorg, invitation_idsuccess
List Teams: Teams of an organization.GET /orgs/{{org}}/teamsReadorg*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Team: One team with its parent and counts.GET /orgs/{{org}}/teams/{{team_slug}}Readorg, team_slugid, slug, name, privacy, html_url, members_count, repos_count, parent
Create Team: Create a team (optionally with maintainers and repositories, which gives them access).POST /orgs/{{org}}/teamsDestructiveorg, name, description, privacy, notification_setting, parent_team_id, maintainers, repo_namesid, slug, name, privacy, html_url
Update Team: Change a team's name, description, privacy or parent.PATCH /orgs/{{org}}/teams/{{team_slug}}Writeorg, team_slug, name, description, privacy, parent_team_idid, slug, name, privacy, html_url
Delete Team: Delete a team and its child teams.DELETE /orgs/{{org}}/teams/{{team_slug}}Destructiveorg, team_slugsuccess
List Team Members: Members of a team.GET /orgs/{{org}}/teams/{{team_slug}}/membersReadorg, team_slug, role, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Add Or Update Team Member: Add a user to a team or change their team role.PUT /orgs/{{org}}/teams/{{team_slug}}/memberships/{{username}}Destructiveorg, team_slug, username*, rolestate, role
Remove Team Member: Remove a user from a team.DELETE /orgs/{{org}}/teams/{{team_slug}}/memberships/{{username}}Destructiveorg, team_slug, username*success
List Team Repositories: Repositories a team can access.GET /orgs/{{org}}/teams/{{team_slug}}/reposReadorg, team_slug, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Add Or Update Team Repository: Give a team access to a repository, or change the permission.PUT /orgs/{{org}}/teams/{{team_slug}}/repos/{{owner}}/{{repo}}Destructiveorg, team_slug, owner, repo, permissionsuccess
Remove Team Repository: Remove a team's access to a repository.DELETE /orgs/{{org}}/teams/{{team_slug}}/repos/{{owner}}/{{repo}}Destructiveorg, team_slug, owner, reposuccess
List Repository Webhooks: Webhooks of a repository.GET /repos/{{owner}}/{{repo}}/hooksReadowner, repo, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Repository Webhook: One repository webhook.GET /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}Readowner, repo, hook_id*id, active, events, config, url
Create Repository Webhook: Send repository events to a URL (gives that URL the event data).POST /repos/{{owner}}/{{repo}}/hooksDestructiveowner, repo, url*, events, active, content_type, webhook_secret, insecure_sslid, active, events, config, url
Update Repository Webhook: Change a webhook's URL, events, secret or state.PATCH /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}Destructiveowner, repo, hook_id*, url, events, active, content_type, webhook_secret, insecure_sslid, active, events, config, url
Delete Repository Webhook: Delete a repository webhook.DELETE /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}Destructiveowner, repo, hook_id*success
Ping Repository Webhook: Send a ping event to a webhook.POST /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}/pingsWriteowner, repo, hook_id*success
List Webhook Deliveries: Recent deliveries of a repository webhook (status, event, duration).GET /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}/deliveriesReadowner, repo, hook_id*, cursor, per_page, page, all_pages, max_itemsitems, count, next_page, has_more, next_cursor
Redeliver Webhook Delivery: Send a past delivery again.POST /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}/deliveries/{{delivery_id}}/attemptsWriteowner, repo, hook_id, delivery_idsuccess
List Organization Webhooks: Webhooks of an organization.GET /orgs/{{org}}/hooksReadorg*, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Create Organization Webhook: Send organization-wide events to a URL.POST /orgs/{{org}}/hooksDestructiveorg, url, events, active, content_type, webhook_secret, insecure_sslid, active, events, config, url
Delete Organization Webhook: Delete an organization webhook.DELETE /orgs/{{org}}/hooks/{{hook_id}}Destructiveorg, hook_idsuccess
Search Code: Search file contents across repositories the token can see.GET /search/codeReadq*, sort, order, per_page, page, all_pages, max_itemstotal_count, incomplete_results, items, count, next_page, has_more
Search Issues And Pull Requests: Search issues and pull requests.GET /search/issuesReadq*, sort, order, per_page, page, all_pages, max_itemstotal_count, incomplete_results, items, count, next_page, has_more
Search Repositories: Search repositories.GET /search/repositoriesReadq*, sort, order, per_page, page, all_pages, max_itemstotal_count, incomplete_results, items, count, next_page, has_more
List Dependabot Alerts: Dependabot alerts of a repository.GET /repos/{{owner}}/{{repo}}/dependabot/alertsReadowner, repo, state, severity, ecosystem, package, scope, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List Organization Dependabot Alerts: Dependabot alerts across an organization.GET /orgs/{{org}}/dependabot/alertsReadorg*, state, severity, ecosystem, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Dependabot Alert: One Dependabot alert with its advisory.GET /repos/{{owner}}/{{repo}}/dependabot/alerts/{{alert_number}}Readowner, repo, alert_number*number, state, html_url, created_at, dependency, security_advisory, security_vulnerability
List Code Scanning Alerts: Code scanning alerts of a repository.GET /repos/{{owner}}/{{repo}}/code-scanning/alertsReadowner, repo, state, severity, tool_name, ref, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
List Organization Code Scanning Alerts: Code scanning alerts across an organization.GET /orgs/{{org}}/code-scanning/alertsReadorg*, state, severity, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Get Code Scanning Alert: One code scanning alert.GET /repos/{{owner}}/{{repo}}/code-scanning/alerts/{{alert_number}}Readowner, repo, alert_number*number, state, html_url, created_at, rule, tool, most_recent_instance
List Secret Scanning Alerts: Secret scanning alerts of a repository (the leaked secret values are hidden).GET /repos/{{owner}}/{{repo}}/secret-scanning/alerts?hide_secret=trueReadowner, repo, state, secret_type, per_page, page, all_pages, max_itemsitems, count, next_page, has_more
Call Any GitHub REST API: Call any REST endpoint of this GitHub server with the connector's credentials: method, path (e.g. /repos/my-org/api/branches), optional query and JSON body. Treated as destructive: an agent always asks first.{{method}} {{path}}Destructivemethod, path, query, bodyitems, success
GitHub GraphQL Query: Run a GraphQL query or mutation against GitHub's GraphQL API. Treated as destructive (mutations change data).POST /graphqlDestructivequery*, variablesdata, errors

Was this page helpful?