---
title: "GitHub"
description: "Install the Baz GitHub App on your organization, choose repositories, and add write access for fixes and approvals."
canonical: "https://baz.ai/docs/connect/github"
---

# GitHub

Install the Baz GitHub App on your organization, choose repositories, and add write access for fixes and approvals.

Baz connects to GitHub through GitHub Apps. A review app gives Baz what it needs to read code and post reviews. A separate write access app is optional and unlocks agents that change code or approve PRs. You choose which repositories each app can reach, and Baz follows your GitHub permissions when deciding who can see what.

## Permissions

Baz uses two GitHub apps. The **review app** reads your code, posts PR comments, and runs the **Baz Reviewer** check. It's all you need to get reviews. The **write access app** lets Baz change code and approve: [Fixer](/docs/agents/build/fixer) commits and PRs, [Merger](/docs/agents/deploy/merger) approvals, and pull requests from [Skill Maintainer](/docs/agents/maintain/skill-maintainer) and the [SRE Agent](/docs/agents/maintain/sre-agent). Add it when you turn those agents on.

:::note
Baz supports GitHub organization accounts only, not personal accounts.
:::

## Connect GitHub

<Steps>
  <Step title="Start from onboarding or Integrations" icon="plug">
    During onboarding, select **Continue with GitHub**. If your organization is already set up, go to **Settings → Integrations → GitHub** and select **Configure**.
  </Step>
  <Step title="Install the review app" icon="download">
    GitHub opens the app installation page. Pick your organization, then choose **All repositories** or **Only select repositories**, and select **Install**.
  </Step>
  <Step title="Finish onboarding" icon="check-check">
    Back in Baz, choose your review agents and their minimum severity, and optionally connect a ticketing system. See [Quickstart](/docs/quickstart).
  </Step>
  <Step title="Open a pull request" icon="git-pull-request">
    Baz reviews new PRs in the selected repositories automatically.
  </Step>
</Steps>

## Write access

Install the write access app when you want Baz to change code or approve PRs.

<Steps>
  <Step title="Open the GitHub integration" icon="settings">
    Go to **Settings → Integrations → GitHub**. Installations without it show **No write access**.
  </Step>
  <Step title="Configure write access" icon="key-round">
    Open the installation's menu and select **Configure Write Access**. You can also start it from **Connect** on the setup banner in the Software Factory.
  </Step>
  <Step title="Select repositories" icon="check-check">
    Install the app on the repositories where you want Fixer, Merger approvals, and the Maintain agents.
  </Step>
</Steps>

:::tip
Some actions in the Baz app run as you, such as posting a comment or approving a PR from the PR page. GitHub may ask you to authorize the write access app for your own account the first time.
:::

## Manage the integration

From **Settings → Integrations → GitHub**: Use **Add Repos** to give Baz more repositories, **Reconfigure** to reconnect an installation that was disabled, and **Configure Write Access** to install or update the write access app.

To narrow which files Baz reviews inside a repository, use excluded paths and per-agent scope rather than removing the repository. See [Agent settings](/docs/agents/agent-settings).

## Related

<CardGroup cols={2}>
  <Card title="Quickstart" href="/docs/quickstart" icon="rocket">
    From install to first review.
  </Card>
  <Card title="Check runs" href="/docs/reference/check-runs" icon="check-check">
    What each Baz check run state means.
  </Card>
  <Card title="Users and permissions" href="/docs/admin/users-and-permissions" icon="users">
    How GitHub permissions map to Baz roles.
  </Card>
</CardGroup>
