What this does
The GitHub integration unlocks three things:
- Read your code: the agent can search and read files to diagnose customer-reported errors (without exposing source code to customers).
- Detect deploys: when a deploy lands with a commit message like
fixes CSTAR-42, cStar resolves open tickets still linked to that Sentry issue and pings their assignee in the app. New tickets no longer get Sentry links, so this only catches older ones, and customer emails aren't wired up yet. Recognized verbs includefixes,closes, andresolves. - Open issues: the agent can file a GitHub issue for engineering when it can't resolve a real bug. Customer notices when the issue closes aren't wired up yet.
How to connect
- Go to Settings → Team → Integrations → GitHub.
- Create a fine-grained Personal Access Token at github.com/settings/personal-access-tokens/new.
- On GitHub's token page, pick the repos the token can access. cStar keeps the 10 most recently updated ones, and the agent works in the most recent.
- Set permissions:
- Contents: Read-only (required for code reads + deploy detection)
- Issues: Read and write (required for the agent to file bugs)
- Pull requests: Read and write (optional, for future PR features)
- Paste the token and click Validate, then Connect.
- After connecting, copy the webhook URL and Webhook Secret from the Deploy & Issue Webhooks card and add them to your repo's Settings → Webhooks, with Content type set to
application/json.
Subscribed webhook events
Turn on these events in the GitHub webhook config:
- Deployment statuses: for deploy detection
- Pushes: for commit-based deploy detection on main
- Issues: so cStar sees when AI-filed issues close (customer notices aren't wired up yet)
Security
- Code is read-only by default. Write access (PRs, issues) requires explicit toggle in Settings.
- The agent is forbidden from sharing source code, file paths, or issue URLs with customers.
- Tokens are encrypted at rest in cStar.