GitHub currently only supports the APP_INSTALLATION authentication method (GitHub App installation) in the backend implementation.
Backend Prerequisite Configuration (Required for Local Deployment Only)
At minimum, configure the following environment variables for the API service:GIT_CREDENTIALS_KEY: Used to encrypt and store connection credentials.BACKEND_PUBLIC_URLorPUBLIC_API_URL: Used to generate theWebhook URLfor display.FRONTEND_URL: The URL to redirect to after GitHub installation is completed.GITHUB_APP_SLUG: The slug of the GitHub App (used to generate installation and management pages).GITHUB_APP_IDGITHUB_APP_PRIVATE_KEY
GITHUB_WEBHOOK_SECRET: If configured, the backend will verify the GitHub Webhook signature.
Web Configuration Steps
- Open
Settings -> Connectors -> Git(/settings/connectors?tab=git). - Select
GitHubas theProvider. - The
Auth methodwill beAPP_INSTALLATION. - Click
Start Connectionto jump to the GitHub App installation page. - After completing the installation and authorizing repositories on GitHub, the page will automatically return to the connectors page, and the connection will appear in the
Existing Connectionslist.
GitHub App Recommendations
- In the GitHub App’s Webhook settings, enter the
Webhook URLcopied from the previous step (required for local deployment only). - If you set
GITHUB_WEBHOOK_SECRET, the Webhook Secret in the GitHub App must match. - Recommended events to enable:
pull_request,issue_comment,issues(corresponding to current backend processing logic).
Common Issues
Missing GITHUB_APP_ID or GITHUB_APP_PRIVATE_KEY: Check the GitHub App environment variables.- The displayed Webhook address is
localhost: SetBACKEND_PUBLIC_URL(orPUBLIC_API_URL) to an externally accessible address. - No redirect to frontend after installation: Check if
FRONTEND_URLis correct.