Skip to main content
This guide walks you through setting up a GitHub App to enable GitHub integration for your Plane workspace on a self-hosted instance. Since self-hosted environments don’t come pre-configured for GitHub, you’ll need to set up the necessary authentication, permissions, and webhooks to ensure smooth integration. This guide covers configuration for both: In this guide, you’ll:
  1. Create and configure a GitHub App
  2. Set up permissions and events
  3. Configure your Plane instance
Activate GitHub integrationAfter creating and configuring the GitHub app and configuring the instance as detailed on this page, you’ll need to setup the GitHub integration within Plane.

Create GitHub App

To configure GitHub integration, you’ll need to create a GitHub App within your organization.
  1. Go to Settings > Developer Settings > GitHub Apps in your GitHub organization.
  2. Click New GitHub App. Create GitHub App
  3. In the Register new GitHub App page, provide a GitHub App name and Homepage URL. App name and homepage URL
  4. In the Identifying and authorizing users section, add the following Callback URLS.
    These URLs allow Plane to verify and enable workspace connection with the Github App. Add Callback URL
  5. In the Post installation section, add the below Setup URL.
    Redirects users to this URL after GitHub app installation. Add setup URL
    1. Turn on Redirect on update.
    2. In the Webhook section, add the below Webhook URL.
      This allows Plane to receive updates from GitHub repositories. Add Webhook URL

Set up permissions and events

  1. Add repository and account permissions by setting the Access dropdown next to each permission, as shown in the tables below. Setup permissions Repository permissions Account permissions
  2. In the Subscribe to events section, turn on all the required events below. Subscribe to events
  3. Click the Create GitHub App button at the bottom of the page.

Configure Plane instance

  1. Go back to Settings > Developer Settings > GitHub Apps.
  2. Click Edit on the GitHub you created.
  3. In the General tab, under the Client secrets section, click Generate a new client secret. General tab
  4. Scroll down to the Private keys section. Private keys
  5. Click Genereate a private key.
  6. Retrieve the following details from the General tab:
    • App ID
    • Client ID
    • Client secret
    • GitHub App name
    • Private key
  7. Before adding the Private key as an environment variable, you’ll need to convert it to base64. Since private keys are typically multi-line, they can cause parsing errors or issues when setting environment variables. To avoid this, run the following command to convert the key to base64:
  8. Add these environment variables with the values to your Plane instance’s .env file.
  9. Save the file and restart the instance.
  10. Once you’ve completed the instance configuration, activate the GitHub integration in Plane.

Troubleshooting

Invalid private key

Error: Failed to create GitHub connection: Invalid keyData
This error usually occurs when the private key is not correctly generated. To fix this, follow the below steps.
  1. Generate a new private key.
  2. Convert the private key to base64.
  1. Add the private key to the .env file.
  1. Save the file and restart the instance.

Unable to connect GitHub organization account or personal account

Error: Invalid request callback URL.
This error usually occurs when the callback URL is not correctly configured or the GitHub App is not marked public. To fix this, follow the below steps.
  1. Check if the callback URL is correctly configured.
  2. Check if your GitHub App is marked public.

Application secret value not found

Error: Application secret value not found for key: x-github-id
This error usually occurs when the application secret is not correctly configured. To fix this, follow the below steps.
  1. Delete the plane_app_details_github key from redis cache. del plane_app_details_github.
  2. Set the SILO_BASE_URL in env with plane self hosted url and restart the api server. export SILO_BASE_URL=https://<your-domain>
  3. Run this command in api server shell python manage.py reset_marketplace_app_secrets to reset the application secrets.
  4. Try to connect again to the organization account to Plane.

Github integration suddenly stopped working after a while

This error usually occurs when the GitHub integration is not correctly configured. To fix this, follow the below steps.
  1. Make sure you’ve opted out of Server Token expiration and reconnect once again to the organization account to Plane. Check in Github App Settings > Optional Features