GitHub Integration
Overview
Connect GitHub to enable the Git AI Agent, which correlates code changes with infrastructure incidents during investigations and chat sessions.
What It Enables
- View recent commits and pull requests
- Correlate deployments with incident timelines
- Identify code or configuration changes that caused issues
- Browse file contents and blame information
Setup
1. Start Integration
- In the OpsWorker portal, go to Integrations
- Find GitHub and click Connect
2. Authorize via OAuth
- You'll be redirected to GitHub for OAuth authorization
- Select the GitHub organization or account to connect
- Choose which repositories to grant access to (all or selected)
- Authorize the OpsWorker application
3. Configure for Cluster
- Return to the OpsWorker portal
- Associate the GitHub integration with your cluster(s)
Permissions
OpsWorker requests read-only access to repositories:
| Permission | Purpose |
|---|---|
| Read repository contents | View files, commits, branches |
| Read pull requests | View PRs and their changes |
| Read commit history | Correlate changes with incidents |
OpsWorker does not request write access to your repositories.
Use Cases
- Investigation enrichment: When a pod crashes after a deployment, the Git Agent identifies the relevant commit
- Change correlation in chat: "What PRs were merged in the last 24 hours?"
- Configuration drift: Compare running config with repository definitions
Next Steps
- Git AI Agent — Full agent capabilities
- PR Creation — Code-level fix suggestions