Connect GitHub
Build repository, issue, pull request and developer workflows with GitHub.
On this page
Before you connectGet your credentialsAdd the workspace connectionField formats and visibilityChoose Preview and ProductionBuild a working featureVerify the integrationTroubleshootingRelated guidesBefore you connect
Use a personal access token for application workflows involving GitHub resources. This connector is not a promise of automatic source-code sync or repository deployment for your RetronAI project.
You need access to the provider account and an owner or admin role to manage workspace credentials in RetronAI. Prepare a test resource for Preview before connecting a service used by real customers. Provider usage and service configuration are managed in your provider account.
Get your credentials
- Open Settings → Developer settings → Personal access tokens in GitHub. Create a fine-grained token where supported.
- Choose the resource owner, specific repositories, required permissions and expiration. Complete organization approval if required.
- Copy the token into Personal access token. A token cannot grant access beyond your own account permissions or bypass organization policies.
Open provider dashboard · Official credential documentation
Before you continue: Save any secret that is shown only once. If you lose it, create or rotate the credential at the provider, then update the RetronAI connection.
Add the workspace connection
- Open your workspace settings in RetronAI and select Connectors.
- Find GitHub, open its provider page, and choose Add connection.
- Enter a recognizable connection name, such as GitHub — Preview. The name identifies this reusable connection in your workspace.
- Choose the connection method when more than one is offered: Personal access token.
- Complete the fields below, then choose Connect. Resolve any field or provider error before continuing.
| Field | Required? | What to enter |
|---|---|---|
| Personal access token | Required | GitHub fine-grained or classic personal access token. |
Credential storage: Store credentials in the connection form, not in a chat message, screenshot, or source file. Sensitive values are not shown again after saving. Optional fields may still be necessary for the particular feature you are building; “optional” describes the connection form, not every possible operation.
Field formats and visibility
The examples below show the shape of a value, not working credentials. Keep related fields from the same provider account and environment. Do not remove URL parameters or shorten a token to match the displayed example.
| Field | Example or input | How it is used |
|---|---|---|
| Personal access token | Paste the complete credential value. | Server credential. Keep out of browser code. |
A public client key identifies client configuration; it does not replace your application’s access rules. Server credentials belong in the connection form and trusted server operations. If an optional credential is absent, ask RetronAI to implement only the operations supported by the credentials you supplied.
Choose Preview and Production
A workspace connection is reusable. Creating it does not automatically wire it into every app.
- Open the project and go to Settings → Connectors.
- Select the Preview environment and assign the GitHub connection intended for testing.
- Review the selected provider account and connection details before saving the project binding.
- When preparing to publish, configure Production separately. Confirm the provider account and resource before selecting the live connection.
Shared resources: Using the same provider resource in both environments means tests can affect the same external data. Different environment selections do not create separate provider resources for you. See project connections for the full binding workflow.
Build a working feature
Once the connection is assigned, ask RetronAI to use it for a specific behavior. Include the resource, expected result, and failure behavior. For example:
Show open issues from a selected GitHub repository in my internal dashboard. Keep the token server-side and include pagination and rate-limit handling.
Review the resulting app in Preview. Connecting credentials is a setup step; it does not by itself add screens, server routes, permissions, or event handlers to your app.
Verify the integration
Compare the displayed issues with a known repository and verify private repository data requires app authentication.
RetronAI supports a provider connection check for this connector. Passing that check confirms the checked credentials or connection are usable; it does not test every resource permission or the complete feature you built.
Before publishing, repeat the relevant checks with the intended Production configuration. Confirm error messages do not reveal credentials and that private data remains protected by the app’s authorization rules.
Troubleshooting
Check token scope, repository access, and organization restrictions. Credential validation does not guarantee access to every repository.
If the feature still uses the wrong resource, check the project environment and assigned connection first. Updating a workspace connection affects projects that use it; review those bindings before replacing credentials. If a credential was rotated at the provider, update the saved connection and retest the feature.