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.
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#
- Go to Integrations → Connectors and choose GitHub.
- Leave GitHub server URL empty for github.com. For GitHub Enterprise Server enter the server address, for example
https://github.example.com(/api/v3is added for you). For GHE.com enterhttps://<name>.ghe.com. - Optional: set Default owner, Default repository and Default organization. Actions use them when their
owner,repoororginput is empty. - Choose Authentication and fill in the credentials (below).
- Click Test connection.

GitHub App (recommended)#
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.
- 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.
- Give it the permissions you need (see Permissions), then Create GitHub App.
- Note the App ID. Under Private keys, click Generate a private key and keep the downloaded
.pemfile. - 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). - In UserTasks, choose GitHub App, enter the App ID and installation ID and paste the whole
.pemfile 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.
| Area | GitHub App / fine-grained permission |
|---|---|
| Everything | Repository Metadata: read |
| Files, branches, tags, releases | Contents: read, or write to change |
| Issues, labels, milestones | Issues: read or write |
| Pull requests and reviews | Pull requests: read or write |
| Workflows, runs, logs, artifacts | Actions: read; write to run, re-run, cancel, enable or delete |
| Actions secrets / variables | Secrets / Variables: write (repository or organization) |
| Environments, deployment approvals | Environments and Deployments: write |
| Commit statuses, check runs | Commit statuses: write; Checks: read |
| Repository settings, collaborators, branch protection, rulesets, deleting repositories | Administration: write |
| Webhooks | Webhooks: write (repository or organization) |
| Members, invitations, teams | Organization Members: read or write |
| Security alerts | Dependabot 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-Permissionsheader 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_referencerefuses a destructive reference unless the call includesconfirm: 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_slugandusernamemust be single names. A value with/is refused, so an input cannot point a call at another API.

How calls behave#
- Paging: list actions take
per_page(up to 100) andpage, and returnitems,count,next_pageandhas_more(andtotal_countwhere GitHub reports it). Setall_pagesto follow GitHub'sLinkheader and return every item up tomax_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-AfterorX-RateLimit-Reset), the call waits and retries if the wait is under a minute and fits the call's timeout. Otherwise it fails witherror_coderate_limitedand 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 anerror_messagethat 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 leaveshaempty, so one action both creates and updates. Get File Contents returns the text indecoded_content. - Branches and tags start from
from_ref(a branch, tag or commit; default: the default branch) unless you pass an exactsha. - Set … Variable updates a variable, or creates it when it does not exist.
- Logs, archives and artifacts return a
download_urlthat 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.
- On the GitHub connector, set Webhook secret to a long random value.
- Create the workflow with a Webhook trigger and note its webhook slug.
- 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_requestto start the workflow for only those events. - Content type:
application/json. - Secret: the same webhook secret.
- Payload URL:
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#
- Form trigger: team, repository name, visibility.
- Approval task for the platform team.
- Call Reference → GitHub: Create Repository From Template with
template_owner: acme,template_repo: service-template,owner: acme,name: {{form.repo_name}},private: true. - GitHub: Add Or Update Team Repository with
team_slug: {{form.team}},permission: maintain. - GitHub: Update Branch Protection on
mainwith aprotectionobject that requires one review and thecicheck.
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#
| Action | Request | Risk | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Get Authenticated User: The user the personal access token belongs to (not available with GitHub App authentication). | GET /user | Read | (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_limit | Read | (none) | resources, rate |
| Get User: Public profile of a GitHub user. | GET /users/{{username}} | Read | username* | login, id, name, company, html_url, type |
| List Organization Repositories: Repositories of an organization. | GET /orgs/{{org}}/repos | Read | org*, type, sort, direction, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List My Repositories: Repositories the token's user can access (personal access tokens). | GET /user/repos | Read | visibility, affiliation, sort, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List Installation Repositories: Repositories the GitHub App installation can access (GitHub App authentication). | GET /installation/repositories | Read | per_page, page, all_pages, max_items | total_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}} | Read | owner, repo | id, name, full_name, html_url, private, visibility, default_branch, archived, owner, permissions |
| Create Organization Repository: Create a repository in an organization. | POST /orgs/{{org}}/repos | Write | org, name, description, visibility, auto_init, gitignore_template, license_template, team_id, has_issues, has_wiki, delete_branch_on_merge | id, 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/repos | Write | name*, description, private, auto_init | id, 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}}/generate | Write | template_owner, template_repo, owner, name, description, private, include_all_branches | id, 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}} | Write | owner, 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, archived | id, 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}} | Write | owner, repo | id, 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}} | Destructive | owner, repo | success |
| Transfer Repository: Transfer a repository to another user or organization (changes who owns and can access it). | POST /repos/{{owner}}/{{repo}}/transfer | Destructive | owner, repo, new_owner*, new_name | id, name, full_name, html_url, private, visibility, default_branch, archived, owner |
| Get Repository Topics: The repository's topics. | GET /repos/{{owner}}/{{repo}}/topics | Read | owner, repo | names |
| Replace Repository Topics: Replace all topics (lowercase, comma-separated or a JSON array). | PUT /repos/{{owner}}/{{repo}}/topics | Write | owner, repo, names* | names |
| List Collaborators: People with access to the repository, with their permissions. | GET /repos/{{owner}}/{{repo}}/collaborators | Read | owner, repo, affiliation, permission, per_page, page, all_pages, max_items | items, 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}} | Destructive | owner, repo, username*, permission | id, invitee, permissions, html_url, success |
| Remove Collaborator: Remove a user's access to the repository. | DELETE /repos/{{owner}}/{{repo}}/collaborators/{{username}} | Destructive | owner, repo, username* | success |
| List Repository Teams: Teams with access to the repository. | GET /repos/{{owner}}/{{repo}}/teams | Read | owner, repo, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Branch Protection: Protection rules of a branch. | GET /repos/{{owner}}/{{repo}}/branches/{{branch}}/protection | Read | owner, 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}}/protection | Destructive | owner, repo, branch, protection | required_status_checks, enforce_admins, required_pull_request_reviews |
| Delete Branch Protection: Remove every protection rule from a branch. | DELETE /repos/{{owner}}/{{repo}}/branches/{{branch}}/protection | Destructive | owner, repo, branch* | success |
| List Repository Rulesets: Rulesets that apply to the repository. | GET /repos/{{owner}}/{{repo}}/rulesets | Read | owner, repo, includes_parents, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Repository Ruleset: One ruleset with its rules and bypass list. | GET /repos/{{owner}}/{{repo}}/rulesets/{{ruleset_id}} | Read | owner, 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}}/rulesets | Write | owner, repo, ruleset* | id, name, enforcement |
| Update Repository Ruleset: Change a ruleset (rules, enforcement, bypass list). | PUT /repos/{{owner}}/{{repo}}/rulesets/{{ruleset_id}} | Destructive | owner, repo, ruleset_id, ruleset | id, name, enforcement |
| Delete Repository Ruleset: Delete a ruleset. | DELETE /repos/{{owner}}/{{repo}}/rulesets/{{ruleset_id}} | Destructive | owner, repo, ruleset_id* | success |
| List Organization Rulesets: Rulesets defined for the organization. | GET /orgs/{{org}}/rulesets | Read | org*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List Branches: Branches of a repository. | GET /repos/{{owner}}/{{repo}}/branches | Read | owner, repo, protected, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Branch: A branch with its head commit and protection summary. | GET /repos/{{owner}}/{{repo}}/branches/{{branch}} | Read | owner, 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/refs | Write | owner, repo, branch*, from_ref, sha | ref, object, url |
| Delete Branch: Delete a branch. | DELETE /repos/{{owner}}/{{repo}}/git/refs/heads/{{branch}} | Destructive | owner, repo, branch* | success |
| Rename Branch: Rename a branch (open pull requests and protection rules follow). | POST /repos/{{owner}}/{{repo}}/branches/{{branch}}/rename | Write | owner, repo, branch, new_name | name, commit |
| Merge Branch: Merge head into base with a merge commit (204: already merged). | POST /repos/{{owner}}/{{repo}}/merges | Write | owner, repo, base, head, commit_message | sha, html_url, success |
| List Commits: Commits on a branch, optionally for one path, author or time range. | GET /repos/{{owner}}/{{repo}}/commits | Read | owner, repo, sha, path, author, since, until, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Commit: A commit with its files and stats. | GET /repos/{{owner}}/{{repo}}/commits/{{ref}} | Read | owner, 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}} | Read | owner, repo, base, head | status, 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}}/status | Read | owner, 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}} | Write | owner, repo, sha, state, context, description, target_url | id, 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-runs | Read | owner, repo, ref*, check_name, status, per_page, page, all_pages, max_items | total_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}} | Read | owner, repo, path*, ref | name, 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}} | Write | owner, repo, path, message, content*, content_encoding, branch, sha, committer | content, commit |
| Delete File: Delete a file in a commit (its sha is looked up when omitted). | DELETE /repos/{{owner}}/{{repo}}/contents/{{path}} | Destructive | owner, repo, path, message, branch, sha | content, 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}} | Read | owner, repo, ref* | download_url, expires_in_seconds |
| List Issues: Issues (and pull requests) of a repository. | GET /repos/{{owner}}/{{repo}}/issues | Read | owner, repo, state, labels, assignee, creator, milestone, since, sort, direction, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Issue: One issue with its labels, assignees and milestone. | GET /repos/{{owner}}/{{repo}}/issues/{{issue_number}} | Read | owner, repo, issue_number* | id, number, title, state, html_url, body, user, labels, assignees, milestone |
| Create Issue: Open an issue. | POST /repos/{{owner}}/{{repo}}/issues | Write | owner, repo, title*, body, assignees, labels, milestone | id, 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}} | Write | owner, repo, issue_number*, title, body, state, state_reason, assignees, labels, milestone | id, number, title, state, html_url, body, user, labels, assignees, milestone |
| Close Issue: Close an issue. | PATCH /repos/{{owner}}/{{repo}}/issues/{{issue_number}} | Write | owner, repo, issue_number*, state_reason | id, 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}}/lock | Write | owner, repo, issue_number*, lock_reason | success |
| List Issue Comments: Comments on an issue or pull request. | GET /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/comments | Read | owner, repo, issue_number*, since, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Create Issue Comment: Comment on an issue or pull request. | POST /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/comments | Write | owner, repo, issue_number, body | id, body, html_url, user, created_at |
| Update Issue Comment: Edit a comment. | PATCH /repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}} | Write | owner, repo, comment_id, body | id, body, html_url, user, created_at |
| Delete Issue Comment: Delete a comment. | DELETE /repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}} | Destructive | owner, repo, comment_id* | success |
| Add Labels: Add labels to an issue or pull request. | POST /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels | Write | owner, repo, issue_number, labels | items |
| Set Labels: Replace all labels of an issue or pull request. | PUT /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels | Write | owner, repo, issue_number, labels | items |
| Remove Label: Remove one label from an issue or pull request. | DELETE /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels/{{name}} | Write | owner, repo, issue_number, name | items |
| List Repository Labels: Labels defined in the repository. | GET /repos/{{owner}}/{{repo}}/labels | Read | owner, repo, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Create Label: Create a label. | POST /repos/{{owner}}/{{repo}}/labels | Write | owner, repo, name*, color, description | id, name, color |
| Delete Label: Delete a label from the repository (and every issue). | DELETE /repos/{{owner}}/{{repo}}/labels/{{name}} | Destructive | owner, repo, name* | success |
| Add Assignees: Assign people to an issue or pull request. | POST /repos/{{owner}}/{{repo}}/issues/{{issue_number}}/assignees | Write | owner, repo, issue_number, assignees | id, 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}}/assignees | Write | owner, repo, issue_number, assignees | id, number, title, state, html_url, body, user, labels, assignees, milestone |
| List Milestones: Milestones of a repository. | GET /repos/{{owner}}/{{repo}}/milestones | Read | owner, repo, state, sort, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Create Milestone: Create a milestone. | POST /repos/{{owner}}/{{repo}}/milestones | Write | owner, repo, title*, description, due_on, state | number, title, state, html_url, due_on |
| Update Milestone: Change or close a milestone. | PATCH /repos/{{owner}}/{{repo}}/milestones/{{milestone_number}} | Write | owner, repo, milestone_number*, title, description, due_on, state | number, title, state, html_url |
| Delete Milestone: Delete a milestone. | DELETE /repos/{{owner}}/{{repo}}/milestones/{{milestone_number}} | Destructive | owner, repo, milestone_number* | success |
| List Pull Requests: Pull requests of a repository. | GET /repos/{{owner}}/{{repo}}/pulls | Read | owner, repo, state, head, base, sort, direction, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Pull Request: One pull request with its merge state. | GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}} | Read | owner, 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}} | Read | owner, repo, pull_number* | text |
| Create Pull Request: Open a pull request from head into base. | POST /repos/{{owner}}/{{repo}}/pulls | Write | owner, repo, title, head, base*, body, draft, maintainer_can_modify | id, 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}} | Write | owner, repo, pull_number*, title, body, state, base | id, 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}}/merge | Write | owner, repo, pull_number*, merge_method, commit_title, commit_message, sha | sha, 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-branch | Write | owner, repo, pull_number*, expected_head_sha | message, url |
| List Pull Request Files: Files changed by a pull request, with patches. | GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/files | Read | owner, repo, pull_number*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List Pull Request Commits: Commits in a pull request. | GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/commits | Read | owner, repo, pull_number*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List Pull Request Reviews: Reviews on a pull request (APPROVED, CHANGES_REQUESTED …). | GET /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews | Read | owner, repo, pull_number*, per_page, page, all_pages, max_items | items, 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}}/reviews | Write | owner, repo, pull_number, event, body, commit_id, comments | id, state, html_url, submitted_at |
| Request Reviewers: Ask people or teams to review a pull request. | POST /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewers | Write | owner, repo, pull_number*, reviewers, team_reviewers | id, number, title, state, html_url, draft, merged, mergeable, head, base |
| Remove Requested Reviewers: Withdraw review requests. | DELETE /repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewers | Write | owner, repo, pull_number, reviewers, team_reviewers | id, number, title, state, html_url, draft, merged, mergeable, head, base |
| List Releases: Releases of a repository, newest first. | GET /repos/{{owner}}/{{repo}}/releases | Read | owner, repo, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Release: One release with its assets. | GET /repos/{{owner}}/{{repo}}/releases/{{release_id}} | Read | owner, 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/latest | Read | owner, repo | id, 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}} | Read | owner, 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}}/releases | Write | owner, repo, tag_name*, target_commitish, name, body, draft, prerelease, generate_release_notes, make_latest | id, tag_name, name, html_url, draft, prerelease, body, created_at |
| Update Release: Edit or publish a release. | PATCH /repos/{{owner}}/{{repo}}/releases/{{release_id}} | Write | owner, repo, release_id*, tag_name, name, body, draft, prerelease, make_latest | id, 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}} | Destructive | owner, repo, release_id* | success |
| Generate Release Notes: Release notes GitHub would write for a tag (nothing is created). | POST /repos/{{owner}}/{{repo}}/releases/generate-notes | Read | owner, repo, tag_name*, previous_tag_name, target_commitish | name, body |
| List Tags: Tags of a repository. | GET /repos/{{owner}}/{{repo}}/tags | Read | owner, repo, per_page, page, all_pages, max_items | items, 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/refs | Write | owner, repo, tag*, from_ref, sha | ref, object, url |
| Delete Tag: Delete a tag. | DELETE /repos/{{owner}}/{{repo}}/git/refs/tags/{{tag}} | Destructive | owner, repo, tag* | success |
| List Workflows: GitHub Actions workflows of a repository. | GET /repos/{{owner}}/{{repo}}/actions/workflows | Read | owner, repo, per_page, page, all_pages, max_items | total_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}} | Read | owner, 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}}/dispatches | Write | owner, repo, workflow_id, ref, inputs | success |
| Enable Workflow: Enable a disabled workflow. | PUT /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/enable | Write | owner, repo, workflow_id* | success |
| Disable Workflow: Disable a workflow (it stops running). | PUT /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/disable | Write | owner, 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/runs | Read | owner, repo, branch, actor, event, status, created, head_sha, per_page, page, all_pages, max_items | total_count, items, count, next_page, has_more |
| List Runs For Workflow: Runs of one workflow. | GET /repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/runs | Read | owner, repo, workflow_id*, branch, status, event, per_page, page, all_pages, max_items | total_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}} | Read | owner, 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}}/jobs | Read | owner, repo, run_id*, filter, per_page, page, all_pages, max_items | total_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}}/rerun | Write | owner, repo, run_id*, enable_debug_logging | success |
| Re-run Failed Jobs: Re-run only the failed jobs of a run. | POST /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/rerun-failed-jobs | Write | owner, repo, run_id*, enable_debug_logging | success |
| Cancel Workflow Run: Cancel a queued or running run. | POST /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/cancel | Write | owner, repo, run_id* | success |
| Delete Workflow Run: Delete a completed run and its logs. | DELETE /repos/{{owner}}/{{repo}}/actions/runs/{{run_id}} | Destructive | owner, 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}}/logs | Read | owner, 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}}/logs | Read | owner, repo, job_id* | download_url, expires_in_seconds |
| List Artifacts: Build artifacts of a repository. | GET /repos/{{owner}}/{{repo}}/actions/artifacts | Read | owner, repo, name, per_page, page, all_pages, max_items | total_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}}/zip | Read | owner, 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_deployments | Read | owner, 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_deployments | Destructive | owner, repo, run_id, environment_ids, state, comment | items |
| List Repository Secrets: Names and dates of a repository's Actions secrets (never the values). | GET /repos/{{owner}}/{{repo}}/actions/secrets | Read | owner, repo, per_page, page, all_pages, max_items | total_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}} | Destructive | owner, repo, secret_name, secret_value | success |
| Delete Repository Secret: Delete a repository Actions secret. | DELETE /repos/{{owner}}/{{repo}}/actions/secrets/{{secret_name}} | Destructive | owner, repo, secret_name* | success |
| List Organization Secrets: Organization Actions secrets (names, visibility; never the values). | GET /orgs/{{org}}/actions/secrets | Read | org*, per_page, page, all_pages, max_items | total_count, items, count, next_page, has_more |
| Set Organization Secret: Create or update an organization Actions secret. | PUT /orgs/{{org}}/actions/secrets/{{secret_name}} | Destructive | org, secret_name, secret_value, visibility, selected_repository_ids | success |
| Delete Organization Secret: Delete an organization Actions secret. | DELETE /orgs/{{org}}/actions/secrets/{{secret_name}} | Destructive | org, secret_name | success |
| List Environment Secrets: Secrets of a deployment environment (names only). | GET /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets | Read | owner, repo, environment_name*, per_page, page, all_pages, max_items | total_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}} | Destructive | owner, 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}} | Destructive | owner, repo, environment_name, secret_name | success |
| Set Dependabot Secret: Create or update a repository Dependabot secret. | PUT /repos/{{owner}}/{{repo}}/dependabot/secrets/{{secret_name}} | Destructive | owner, repo, secret_name, secret_value | success |
| List Repository Variables: Actions variables of a repository, with values. | GET /repos/{{owner}}/{{repo}}/actions/variables | Read | owner, repo, per_page, page, all_pages, max_items | total_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}} | Write | owner, repo, variable_name, value | success, created |
| Delete Repository Variable: Delete a repository Actions variable. | DELETE /repos/{{owner}}/{{repo}}/actions/variables/{{variable_name}} | Destructive | owner, repo, variable_name* | success |
| List Organization Variables: Actions variables of an organization. | GET /orgs/{{org}}/actions/variables | Read | org*, per_page, page, all_pages, max_items | total_count, items, count, next_page, has_more |
| Set Organization Variable: Create or update an organization Actions variable. | PATCH /orgs/{{org}}/actions/variables/{{variable_name}} | Write | org, variable_name, value*, visibility, selected_repository_ids | success, created |
| Delete Organization Variable: Delete an organization Actions variable. | DELETE /orgs/{{org}}/actions/variables/{{variable_name}} | Destructive | org, variable_name | success |
| List Environment Variables: Variables of a deployment environment. | GET /repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables | Read | owner, repo, environment_name*, per_page, page, all_pages, max_items | total_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}} | Write | owner, 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}} | Destructive | owner, repo, environment_name, variable_name | success |
| Get Repository Variable: One repository Actions variable. | GET /repos/{{owner}}/{{repo}}/actions/variables/{{variable_name}} | Read | owner, repo, variable_name* | name, value, created_at, updated_at |
| List Environments: Deployment environments of a repository with their protection rules. | GET /repos/{{owner}}/{{repo}}/environments | Read | owner, repo, per_page, page, all_pages, max_items | total_count, items, count, next_page, has_more |
| Get Environment: One environment with its protection rules and reviewers. | GET /repos/{{owner}}/{{repo}}/environments/{{environment_name}} | Read | owner, 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}} | Destructive | owner, repo, environment_name*, wait_timer, prevent_self_review, reviewers, deployment_branch_policy | id, name, protection_rules |
| Delete Environment: Delete an environment with its secrets and protection rules. | DELETE /repos/{{owner}}/{{repo}}/environments/{{environment_name}} | Destructive | owner, repo, environment_name* | success |
| List Deployments: Deployments of a repository. | GET /repos/{{owner}}/{{repo}}/deployments | Read | owner, repo, environment, ref, sha, task, per_page, page, all_pages, max_items | items, 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}}/deployments | Write | owner, repo, ref*, environment, description, task, auto_merge, required_contexts, payload | id, 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}}/statuses | Write | owner, repo, deployment_id, state, description, environment_url, log_url, auto_inactive | id, state, created_at |
| List Deployment Statuses: Status history of a deployment. | GET /repos/{{owner}}/{{repo}}/deployments/{{deployment_id}}/statuses | Read | owner, repo, deployment_id*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Organization: Organization profile and settings. | GET /orgs/{{org}} | Read | org* | login, id, name, plan, html_url, two_factor_requirement_enabled |
| List Organization Members: Members of an organization. | GET /orgs/{{org}}/members | Read | org*, role, filter, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Organization Membership: A user's membership state and role in the organization. | GET /orgs/{{org}}/memberships/{{username}} | Read | org, username | state, 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}} | Destructive | org, username, role | state, role, user |
| Remove Organization Member: Remove a user from the organization (and its teams and repositories). | DELETE /orgs/{{org}}/memberships/{{username}} | Destructive | org, username | success |
| List Pending Invitations: Pending organization invitations. | GET /orgs/{{org}}/invitations | Read | org*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Invite To Organization: Invite someone by GitHub user ID or email. | POST /orgs/{{org}}/invitations | Destructive | org*, invitee_id, email, role, team_ids | id, login, email, role, created_at |
| Cancel Invitation: Cancel a pending organization invitation. | DELETE /orgs/{{org}}/invitations/{{invitation_id}} | Destructive | org, invitation_id | success |
| List Teams: Teams of an organization. | GET /orgs/{{org}}/teams | Read | org*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Team: One team with its parent and counts. | GET /orgs/{{org}}/teams/{{team_slug}} | Read | org, team_slug | id, 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}}/teams | Destructive | org, name, description, privacy, notification_setting, parent_team_id, maintainers, repo_names | id, slug, name, privacy, html_url |
| Update Team: Change a team's name, description, privacy or parent. | PATCH /orgs/{{org}}/teams/{{team_slug}} | Write | org, team_slug, name, description, privacy, parent_team_id | id, slug, name, privacy, html_url |
| Delete Team: Delete a team and its child teams. | DELETE /orgs/{{org}}/teams/{{team_slug}} | Destructive | org, team_slug | success |
| List Team Members: Members of a team. | GET /orgs/{{org}}/teams/{{team_slug}}/members | Read | org, team_slug, role, per_page, page, all_pages, max_items | items, 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}} | Destructive | org, team_slug, username*, role | state, role |
| Remove Team Member: Remove a user from a team. | DELETE /orgs/{{org}}/teams/{{team_slug}}/memberships/{{username}} | Destructive | org, team_slug, username* | success |
| List Team Repositories: Repositories a team can access. | GET /orgs/{{org}}/teams/{{team_slug}}/repos | Read | org, team_slug, per_page, page, all_pages, max_items | items, 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}} | Destructive | org, team_slug, owner, repo, permission | success |
| Remove Team Repository: Remove a team's access to a repository. | DELETE /orgs/{{org}}/teams/{{team_slug}}/repos/{{owner}}/{{repo}} | Destructive | org, team_slug, owner, repo | success |
| List Repository Webhooks: Webhooks of a repository. | GET /repos/{{owner}}/{{repo}}/hooks | Read | owner, repo, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Repository Webhook: One repository webhook. | GET /repos/{{owner}}/{{repo}}/hooks/{{hook_id}} | Read | owner, 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}}/hooks | Destructive | owner, repo, url*, events, active, content_type, webhook_secret, insecure_ssl | id, active, events, config, url |
| Update Repository Webhook: Change a webhook's URL, events, secret or state. | PATCH /repos/{{owner}}/{{repo}}/hooks/{{hook_id}} | Destructive | owner, repo, hook_id*, url, events, active, content_type, webhook_secret, insecure_ssl | id, active, events, config, url |
| Delete Repository Webhook: Delete a repository webhook. | DELETE /repos/{{owner}}/{{repo}}/hooks/{{hook_id}} | Destructive | owner, repo, hook_id* | success |
| Ping Repository Webhook: Send a ping event to a webhook. | POST /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}/pings | Write | owner, repo, hook_id* | success |
| List Webhook Deliveries: Recent deliveries of a repository webhook (status, event, duration). | GET /repos/{{owner}}/{{repo}}/hooks/{{hook_id}}/deliveries | Read | owner, repo, hook_id*, cursor, per_page, page, all_pages, max_items | items, 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}}/attempts | Write | owner, repo, hook_id, delivery_id | success |
| List Organization Webhooks: Webhooks of an organization. | GET /orgs/{{org}}/hooks | Read | org*, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Create Organization Webhook: Send organization-wide events to a URL. | POST /orgs/{{org}}/hooks | Destructive | org, url, events, active, content_type, webhook_secret, insecure_ssl | id, active, events, config, url |
| Delete Organization Webhook: Delete an organization webhook. | DELETE /orgs/{{org}}/hooks/{{hook_id}} | Destructive | org, hook_id | success |
| Search Code: Search file contents across repositories the token can see. | GET /search/code | Read | q*, sort, order, per_page, page, all_pages, max_items | total_count, incomplete_results, items, count, next_page, has_more |
| Search Issues And Pull Requests: Search issues and pull requests. | GET /search/issues | Read | q*, sort, order, per_page, page, all_pages, max_items | total_count, incomplete_results, items, count, next_page, has_more |
| Search Repositories: Search repositories. | GET /search/repositories | Read | q*, sort, order, per_page, page, all_pages, max_items | total_count, incomplete_results, items, count, next_page, has_more |
| List Dependabot Alerts: Dependabot alerts of a repository. | GET /repos/{{owner}}/{{repo}}/dependabot/alerts | Read | owner, repo, state, severity, ecosystem, package, scope, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List Organization Dependabot Alerts: Dependabot alerts across an organization. | GET /orgs/{{org}}/dependabot/alerts | Read | org*, state, severity, ecosystem, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Dependabot Alert: One Dependabot alert with its advisory. | GET /repos/{{owner}}/{{repo}}/dependabot/alerts/{{alert_number}} | Read | owner, 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/alerts | Read | owner, repo, state, severity, tool_name, ref, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| List Organization Code Scanning Alerts: Code scanning alerts across an organization. | GET /orgs/{{org}}/code-scanning/alerts | Read | org*, state, severity, per_page, page, all_pages, max_items | items, count, next_page, has_more |
| Get Code Scanning Alert: One code scanning alert. | GET /repos/{{owner}}/{{repo}}/code-scanning/alerts/{{alert_number}} | Read | owner, 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=true | Read | owner, repo, state, secret_type, per_page, page, all_pages, max_items | items, 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}} | Destructive | method, path, query, body | items, success |
| GitHub GraphQL Query: Run a GraphQL query or mutation against GitHub's GraphQL API. Treated as destructive (mutations change data). | POST /graphql | Destructive | query*, variables | data, errors |