GitHub currently supports only the APP_INSTALLATION authentication method (GitHub App Installation) in the backend implementation.
Backend Prerequisites
Configure at least the following environment variables in the API service:GIT_CREDENTIALS_KEY: Used to encrypt and store connection credentials.BACKEND_PUBLIC_URLorPUBLIC_API_URL: Used to generate theWebhook URLdisplayed on the page.FRONTEND_URL: The address to redirect to the Web after GitHub installation is complete.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 GitHub Webhook signatures.
Web Configuration Steps
- Open
Settings -> Connectors(/settings/connectors). - Select
GitHubfrom theProviderdropdown. Auth methodwill beAPP_INSTALLATION.- Copy the
Webhook URLdisplayed on the page. - Click
Start Connectionto redirect to the GitHub App installation page. - After completing installation and authorizing repositories in GitHub, the page will automatically return to the connectors page, and the connection will appear in the
Existing Connectionslist.
GitHub App Configuration Recommendations
- Enter the
Webhook URLcopied in the previous step in the GitHub App’s Webhook settings. - 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).
Troubleshooting
Missing GITHUB_APP_ID or GITHUB_APP_PRIVATE_KEY: Check the GitHub App environment variables.- The Webhook URL displayed on the page is
localhost: SetBACKEND_PUBLIC_URL(orPUBLIC_API_URL) to an externally accessible address. - Page does not redirect to frontend after installation: Verify that
FRONTEND_URLis configured correctly.