# Connect GitHub

> Connect weemuu's GitHub app, pick the repos it may see, and choose what each role may do with them.

Only you can connect GitHub. Every sign-in happens in the browser, never in a terminal.


![Connections with the GitHub panel open: the repos weemuu may see](/shots/connections-github.png)

## Connect the GitHub app

1. Open **Connections** under **Setup** in the sidebar.
2. On the **GitHub** row, press **Connect**. Or press **Add a connection**, then **GitHub**.
3. Under **Who can use GitHub**, pick **No access** or **Read** for each role. Nobody gets access until you pick. You can change it later.
4. Press **Connect GitHub**. GitHub opens. Sign in if it asks.
5. On GitHub, press **Create**, then tick the repos Weemuu may read, and install.
6. Back in weemuu, under **Pick the repos Weemuu may see**, tick the repos and press **Share these repos**.

The page says *Weemuu may see N repos. Nothing else is shared.*

To change the repos later, open the GitHub connection, tick or untick under **Repos Weemuu may see**, and press **Save repos**.

Beside a shared repo that is in no project yet, press **Make a project** to start one. See [Start a project from a GitHub repo](/how-to/new-project/).

## Use a token instead

If you can't install the app, open **Use a token instead**, make a fine-grained token on github.com as the steps say, paste it, and press **Test and save**.

A token is only ever used to read. Weemuu can't open pull requests with it. Connect the GitHub app for that.

## Choose who can use GitHub

1. Open the GitHub connection, or look at **Who can use GitHub** beside the Connections list.
2. For each role, pick:
   - **No access**: that role's Weemuus can't read the repos.
   - **Read**: they read the repos you share.
   - **Write**: Weemuu may push that role's approved work to a `weemuu/` branch and open a pull request. Only offered with the GitHub app.
3. Press **Save**.

Write never lets a Weemuu push. Agents hand their work to Weemuu, and Weemuu pushes only after you approve the result. It merges only in projects set to **Ship**, after your yes. See [Set what the team may do on a project](/how-to/access-levels/).

## When the app may only read

If the GitHub app was made with read permission only, the connection says *This GitHub app may only read, so Weemuu can't open pull requests for approved work yet.*

1. Press **Let Weemuu open pull requests**. GitHub opens the app's permissions.
2. Set **Contents** and **Pull requests** to **Read and write**, and save.
3. Accept the new permissions on the app's installation, where GitHub asks you to.

Source: https://docs.weemuu.com/how-to/connect-github/
