Connect GitHub to Toolspoke

Manage repositories, issues, pull requests, and Actions. Toolspoke gives your agents 26 of its actions, and you decide which ones each project allows.

Connection
Provider REST API
Authentication
Personal access token
Actions exposed
26
What a call bills
Nothing
Adapter
Maintained by Toolspoke

Connected in three steps

  1. Install GitHub

    Open the marketplace in your workspace, add GitHub to the project your agents work in, and it appears on the gateway immediately.

  2. Connect the credential

    Provide the credential GitHub asks for. Where to get it, and what it has to be able to reach, is the next section.

  3. Give it to an agent

    Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every GitHub action the project leaves on.

Where the agent answers

  • Slack

    Ask it in a channel or a thread, and it replies in the thread it was asked in.

  • Email

    Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.

  • GitHub

    Mention it on a pull request, and it answers there.

  • Schedule

    A routine wakes it on a schedule, or when a new item matches.

Any agent in the project can use GitHub, and only the actions the project leaves on.

What GitHub asks for

Personal access token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.

Personal access tokenRequired
Create it under Settings → Developer settings → Personal access tokens, on github.com or on your own Enterprise Server instance. Fine-grained tokens need Contents, Issues, Pull requests, and Actions read/write, plus Dependabot alerts read for security metrics, on the repositories you want to reach.
github_pat_… or ghp_…
Enterprise Server URLOptional
Only for GitHub Enterprise Server. Leave blank for github.com.
https://github.example.com

What an agent can do in GitHub

26 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.

16 read, 10 write, none destructive

Reads

16

Fetches data and changes nothing.

  • list_my_repos

    List repositories, newest activity first. Omit owner to list the repositories the token's own account can reach (including private and organisation ones); pass owner to list a specific organisation's or user's repositories. Use this to resolve a repository's exact owner/repo pair and default branch before other actions.

  • list_org_repos

    List an organisation's repositories. Use list_user_repos for a personal account, and list_my_repos for the authenticated account's own repositories.

  • list_user_repos

    List a user's public repositories. Use list_org_repos for an organisation, and list_my_repos for the authenticated account's own repositories.

  • search_repositories

    Search public and accessible repositories with GitHub search syntax, e.g. "language:go stars:>500 topic:cli" or "org:vercel next". Use this to find a repository when you do not already know its owner/repo pair.

  • list_issues

    List issues in a repository, newest updated first by default. Pull requests are excluded, use list_pull_requests for those. Filter by state, labels, assignee, or an updated-since timestamp to keep the result small.

  • get_issue

    Fetch one issue with its full body. Set include_comments to also pull the discussion thread. Works for a pull request number too, but returns only its issue-side fields, use get_pull_request for branch and diff detail.

  • list_issue_comments

    Read the comments on an issue, oldest first. Call get_issue first for the issue itself.

  • list_pull_requests

    List pull requests in a repository. Filter by state, or by head ("owner:branch") and base branch to find the PR for a specific branch.

  • get_pull_request

    Fetch one pull request with its body, merge state, and diff totals. Set include_files to also list the changed files with per-file line counts (file names and counts only, not the patch text).

  • list_pull_request_files

    List the files a pull request changes, with per-file additions and deletions. Call get_pull_request first for the pull request itself.

  • get_file_contents

    Read a file or list a directory from a repository at a branch, tag, or commit. Text files come back decoded and truncated at 40,000 characters; directories come back as an entry listing. Use this before quoting or editing repository content.

  • list_commits

    List commits on a branch, optionally narrowed to one file path, one author, or a date range. Returns short SHAs and first-line messages, so pair it with get_file_contents when you need the actual change.

  • list_workflow_runs

    List GitHub Actions runs for a repository, newest first. Narrow to one workflow file, a branch, or a status such as "failure" to check whether CI is green before merging.

  • list_runs_for_workflow

    List runs of one workflow, newest first. Use list_workflow_runs for every workflow in the repository.

  • get_branch

    Read a named branch and its current commit SHA and tree SHA. Use commit.sha to create a new branch and commit.commit.tree.sha as create_tree.base_tree. Branches containing slashes are supported.

  • list_dependabot_alerts

    List Dependabot dependency vulnerability alerts for one repository. Defaults to open alerts; use severity high,critical to measure outstanding serious dependency risks (lower is better). Returns items and nextCursor; pass nextCursor as after until it is null before counting. An inaccessible repository or disabled/unavailable scanning is an error, never zero alerts. OAuth/classic tokens require security_events (public_repo for public repositories); fine-grained tokens require Dependabot alerts read. Existing OAuth connections may need reconnecting for the new scope. This is a dependency-security outcome, not a measure of every PR review; improvements require fixes to be merged. Never dismiss alerts to improve a metric.

Writes

10

Creates or updates something on the other side.

  • create_issue

    Open a new issue in a repository. Returns the created issue including its number and URL.

  • update_issue

    Edit an existing issue: change its title or body, close or reopen it, or replace its labels and assignees. Pass at least one field to change; labels and assignees replace the current set rather than adding to it. Closing an issue is reversible, set state to "open" to undo it.

  • comment_on_issue

    Post a comment on an issue or on a pull request's conversation tab. Pull requests accept the same issue number here.

  • create_pull_request

    Open a pull request from an existing branch. The head branch must already exist and differ from base. Use draft when the work is not ready for review.

  • run_workflow

    Trigger a workflow_dispatch run of a GitHub Actions workflow on a branch or tag. The workflow must declare a workflow_dispatch trigger, and any inputs it declares as required must be supplied. Poll list_workflow_runs afterwards for the outcome.

  • create_branch

    Create a new branch at an existing commit SHA. First call get_branch for the named base branch and pass commit.sha. This never replaces an existing branch; GitHub rejects a duplicate name.

  • create_or_update_file

    Commit a single file on an explicitly named existing branch. Supply base64-encoded UTF-8 content. To update a file, first read get_file_contents at that branch and pass its current blob sha; omit sha only for a new file. For several files in one commit, use create_tree, create_commit and update_branch instead.

  • create_tree

    Prepare several added or updated text files in one Git tree. Required base_tree preserves every unchanged file: use the target branch current commit.commit.tree.sha from get_branch. Supply complete plain UTF-8 content for each file. This creates a tree object only; follow with create_commit and update_branch to publish all the changes together.

  • create_commit

    Create a commit object for a tree created by create_tree. Pass the branch current commit SHA as the single parent, and the new tree SHA. This does not move a branch; call update_branch with the returned sha to publish the commit, then create_pull_request if appropriate.

  • update_branch

    Fast-forward an existing branch to a commit created by create_commit. Never force-pushes: if somebody changed the branch, GitHub rejects a non-fast-forward update. Re-read get_branch and rebuild the tree and commit on that new head rather than overwriting their work.

What it will not do

The gateway enforces each of these, so they can be stated flatly.

It cannot call anything else
The 26 actions above are the whole of it. A call to any other name is refused before it reaches GitHub rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time.
Nothing here deletes
This connector writes to GitHub, but nothing in it deletes or permanently alters anything.
It reaches no further than your credential
Toolspoke holds no access to GitHub of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either.
It never hears from GitHub
Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in GitHub. An agent has to ask.
It does not smooth over provider limits
Toolspoke does not retry, queue or back off around GitHub's own rate limits. A call that GitHub refuses comes back to the agent as a failed call.

Before you connect it

What can an agent do in GitHub?

26 named actions: 16 that only read and 10 that write. They include list_my_repos, list_org_repos and list_user_repos. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.

What credentials does the GitHub connector need?

Personal access token. The connector asks for personal access token, and optionally enterprise server url. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.

How does an agent get to use GitHub?

Install GitHub in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.

What does the GitHub connector not do?

The 26 actions above are the whole of it. A call to any other name is refused before it reaches GitHub rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. This connector writes to GitHub, but nothing in it deletes or permanently alters anything. Toolspoke holds no access to GitHub of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in GitHub. An agent has to ask. Toolspoke does not retry, queue or back off around GitHub's own rate limits. A call that GitHub refuses comes back to the agent as a failed call.

Can I limit which actions an agent can call?

Yes, in two places. The project switches GitHub's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.

What gets recorded when an agent calls GitHub?

Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.

Agents and skills that use GitHub

  • CI failure explainer

    Give it a red build and it reads the failing run down to the step and line that broke, and says whose problem it is.

  • Cenara Content Engine

    Grows qualified organic traffic to the Cenara blog and turns it into early-access sign-ups, by writing evidence-backed posts as pull requests a human merges.

    every Monday, Wednesday and Friday at 9am
  • Flaky test finder

    Reads CircleCI's flaky-test report each Monday, ranks the tests that fail most and keeps one GitHub tracking issue up to date.

    Mondays at 9am
  • Release notes writer

    Reads the pull requests merged since your last release and the Linear issues they close, and drafts customer-facing release notes in Notion.

  • Vulnerability digest

    Lists the week's new critical and high Snyk issues by repository every Monday, with the fixed version, in one Slack post.

    Mondays at 9am
  • Weekly issue digest

    Reads GitHub each Monday and posts a digest of the week's new issues to Slack.

    Mondays at 9am

Connect GitHub to Toolspoke

Add GitHub to a project and give it to an agent.