Skip to main contentConnect your GitHub repositories to AI SRE to enable code analysis and change correlation.
Overview
AI SRE uses GitHub OAuth to access your repositories, enabling:
- Code analysis and dependency mapping
- Change correlation with incidents
- Pull request and commit history review
- Deployment timeline analysis
Setup during onboarding
GitHub connection is part of the onboarding flow:
- Onboarding wizard — After signing in, you’ll see the onboarding wizard
- Company setup — If you’re the first user, you’ll create a company account
- GitHub connection — The wizard guides you to connect GitHub
- Authorize GitHub App — You’ll be redirected to GitHub to authorize the AI SRE GitHub App
- Select organization — Choose the GitHub organization to connect
- Select repositories — Choose which repositories to connect
- Complete setup — Return to AI SRE to complete onboarding
Permissions
AI SRE only reads from your repositories—it never modifies your code or GitHub settings.
Repository selection
Connect repositories that:
- Contain production services you investigate
- Have active development and deployments
- Are relevant to incident response
Best practices:
- Start with 1–2 critical repositories
- Add additional repositories as needed
- Regularly review connected repositories
- Only connect repositories needed for incident investigation
Troubleshooting
”Insufficient Permissions” error
You don’t have sufficient permissions to install the GitHub App.
Solution: Contact your GitHub organization admin to install the app, or install at the repository level if you’re a repository admin.
”Repository Not Found” error
The selected repository isn’t accessible.
Solution: Verify you have access to the repository and check repository visibility settings.
”Authentication Failed” error
The OAuth flow failed or was cancelled.
Solution: Try the authentication process again. Clear your browser cache if issues persist.
Managing connections
View connected repositories
Go to Connectors → GitHub to view connected repositories and connection status.
Update repository selection
- Go to GitHub App settings
- Modify repository access
- Changes sync to AI SRE automatically
Disconnect GitHub
- Go to Connectors → GitHub
- Click Disconnect
- Confirm disconnection
Note: Disconnecting removes access to repository data. Reconnect to use GitHub features.
Next steps