Skip to main content

GitHub tools setup

Use GitHub tools to connect Glean Assistant and Glean Agents to your GitHub repositories. After you install and configure a GitHub App, users can open pull requests, update code, inspect diffs, and review workflow logs from Glean without switching to GitHub. Tools run as the signed-in user and respect the repository access granted to your GitHub installation.

With this setup, you can:

  • Link the GitHub tools to your GitHub Cloud or GitHub Enterprise Server connector.
  • Authenticate with the central Glean GitHub App or a customer-managed GitHub App.
  • Choose which users can use GitHub tools in Glean Assistant and Glean Agents.

Prerequisites

Before enabling GitHub tools:

  • The GitHub connector must be configured for the GitHub environment you want to use with tools (GitHub Cloud or GitHub Enterprise Server).
  • You must be able to access the Glean admin console.
  • Your GitHub admin must be able to install a GitHub App in your GitHub organization:
    • For central or custom authentication, your GitHub admin must be able to approve and install the GitHub App with the required permissions.

Setup instructions

Follow these steps to set up the GitHub tools in Glean:

  1. In Glean, go to Admin console → Platform → Tools.
  2. Click Add.
  3. From the list in the Add pre-set tools section, select GitHub Tools under Tool templates.
  4. In the Configuration tab:
    1. Select Connector instance to link this tool to your GitHub environment (GitHub Cloud or GitHub Enterprise Server).
    2. Configure authentication using the tabs below, based on your requirements.

Configure authentication

GitHub tools use GitHub App authentication so that tools run as the signed-in user and respect their permissions. You can either use the Glean Central GitHub App (recommended) or configure a custom GitHub App.

Use the central option if:

  • You want the simplest setup flow, and
  • The Glean Central GitHub App meets your organization's requirements.
  1. Select Central under the Authenticate section on the GitHub tools setup page.
  2. Install the Glean Central GitHub App if it is not already installed for your GitHub organization.
  3. During installation, choose which repositories the app can access. You can grant access to all repositories or only selected repositories, depending on your organization's requirements.
  4. Make sure the app is installed in the GitHub organization that matches the Connector instance you selected in Glean.
  5. After the app is installed and repository access is granted, return to Glean and click Save.
  6. Click Edit settings under the Enable tools section to make tools visible for all or some users within Glean Assistant and Glean Agents.

After you save the configuration, GitHub tools run using the signed-in user's GitHub identity and only within the repositories that were granted access during app installation.

Next step

Refer to the GitHub tools documentation for information on testing GitHub tools in Agent builder.