Supported capabilities
Sandbox CLI Manual log source Core integration- Sandbox CLI: GitHub — Give the Sazabi agent the GitHub CLI (gh) in its sandbox to interact with GitHub repositories, pull requests, and issues.
- Manual log source: GitHub Actions — Send every GitHub Actions job log, with run, job and step summaries, to Sazabi from one workflow file.
- Manual log source: GitHub Audit Log — Stream your GitHub Enterprise Cloud audit log, including Git events, to Sazabi through GitHub’s Splunk audit log streaming target.
- Manual log source: GitHub Webhooks — Send GitHub repository and organization webhooks to your Sazabi intake URL to search pushes, pull requests, issues, and workflow runs as log records, with every delivery’s signature verified.
- Core integration: GitHub — Connect GitHub so the Sazabi agent can search your code during investigations and open pull requests with fixes.
Core integration
About
Connecting GitHub gives the Sazabi agent read access to the repositories you select, so it can cross-reference a stack trace with the actual source, see recent changes, and understand pull request context while investigating. GitHub is a forge integration; it can also open pull requests. The agent can:- Search and read source files in your connected repositories.
- Correlate errors with recent code changes and pull requests.
- Open pull requests with a proposed fix.
Prerequisites
- A GitHub account that can install a GitHub App on the repositories you want to connect.
- Organization admin access in Sazabi.
Set up in the dashboard
1
Open the GitHub integration
In the dashboard, go to Settings > Integrations > GitHub.2
Install the Sazabi GitHub App
Start the connection and authorize the Sazabi GitHub App on GitHub. You choose which repositories to grant access to — all repositories or a specific set. GitHub redirects you back to Sazabi when the install completes.3
Map repositories to a project
Back in Sazabi, associate the connected repositories with the project where the agent should use them. Code search for a project reads from the repositories mapped to it.Set up with the CLI
You can also start the GitHub connection with the Sazabi CLI (installed and authenticated — see CLI reference). GitHub connects through a browser flow — the CLI has no--credentials for it. Run:
--json changes only the output: the command still opens the browser and waits for the flow to finish, then prints the resulting connection as JSON:
sazabi repos list shows the repositories available to the project and sazabi repos add <owner/name> links them for code search.
repos add are no longer available, Sazabi links the others and the command lists the ones it couldn’t link; run it again after sazabi repos list to retry. The API reports each requested link in results.
Run sazabi integrations list to confirm the connection.
Code search
Once GitHub is connected and repositories are mapped to a project, the Sazabi agent searches and reads those repositories to trace an error to the exact file and line during an investigation — cross-referencing a stack trace with the source that produced it. See Agent tools.Ask the agent from a pull request
GitHub is also an agent surface — a place you can start an agent thread and read its response without leaving GitHub. Mention @Sazabi in a pull request comment with any request (for example, “why did this test start failing?” or “summarize the risk in this change”), and the agent investigates using your connected repositories and project data, then replies in the same comment thread. Keep mentioning it in that thread to continue the conversation.Connected account
You can also connect your personal GitHub account under Settings > Connected accounts so the agent acts as you at GitHub. When you have a personal connection Sazabi uses it first and falls back to this organization integration otherwise. See Connected accounts.Permissions
The Sazabi GitHub App asks for the access below. You approve it when you install the app, and an organization owner can review it any time in the organization’s GitHub Apps settings on GitHub. Required- Contents (read and write): search and read code, and push the branch for a pull request the agent opens.
- Pull requests (read and write): open pull requests and read their review comments.
- Metadata (read): list repositories, branches, and commits.
- Dependabot alerts (read): lets the agent see whether a vulnerable dependency in your repository already has a Dependabot alert, which manifest pulls it in, and which version fixes it. The agent uses this when an investigation involves a CVE or a flagged package.
- Code scanning alerts (read): lets the agent read findings such as CodeQL results for the code involved in a security issue.
- Secret scanning alerts (read): lets the agent see that a credential was detected in your code. It reads the alert’s type, file, and line, never the secret itself, and it never writes a secret value into an issue, message, or log. Rotate any exposed credential on GitHub and resolve the alert there.
Verify
Open Settings > Integrations > GitHub and confirm the connection reads connected and lists the repositories you selected. Then, in a thread in the mapped project, ask the agent to find a symbol or file you know exists in a connected repository — it should return the file. If code search returns nothing, confirm the repository is both installed on GitHub and mapped to the project.Troubleshooting
Connection shows needs attention — The GitHub App installation may have been removed or its permissions changed on GitHub. Reconnect from Settings > Integrations > GitHub. Agent can’t find code it should see — Confirm the repository is mapped to the project you are working in; code search is scoped to a project’s mapped repositories.Further reading
Code search
How the agent searches your connected code.
Integrations
Browse the full integration catalog.