> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drdroid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Github

> Using the Github connector, you can:

* Fetch recent commits
* Analyse Code
* Raise a Pull Request

### How to setup?

We recommend using the [Fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to connect your Github account to our platform.

The permissions required would be as follows:

* `Contents`: Read + Write (Allows to read code and commits)
* `Metadata`: Read-only
* `Pull requests`: Read + Write (Allows to raise a pull request)

You can select which specific repositories you want to give access to.

### How it works?

While investigating an issue, the Droid Agent uses this connector to fetch recent commits, analyse code and raise a pull request.

Read about how code security and isolation works within our coding agent (used to analyse code and raise PRs as needed) [here](/policies/code-security).
