# GitHub

This integration allows you to manage GitHub repositories from CIPP, including the Community Repositories functionality. The integration requires a traditional GitHub Personal Access Token (PAT) with a minimum of repo:public\_repo permissions. If you plan on saving your templates to GitHub or accessing private/internal repositories, you will need to grant the whole repo scope. You can create a PAT in your GitHub account settings, see the GitHub Token documentation for more info. If you do not enable the extension, a read-only API will be provided.

{% hint style="info" %}
CIPP has a built-in token that will be able to provide you with read-only access to community repositories.
{% endhint %}

## Setting Up the GitHub Integration

{% stepper %}
{% step %}

### Create a GitHub Personal Access Token

See [GitHub's documentation](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) on how to create this and a description of the various access rights.

{% hint style="warning" %}
We do not recommend utilization of a fine-grained PAT. Given the differences in access rights scoping between the traditional PAT and the fine-grained PAT, unexpected issues will arise with the fine-grained PAT.
{% endhint %}
{% endstep %}

{% step %}

### Add the PAT to CIPP

Paste your GitHub PAT into the "GitHub Personal Access Token" box.
{% endstep %}

{% step %}

### Toggle On Integration

Flip the "Enable Integration" toggle to on.
{% endstep %}

{% step %}

### Save Integration Settings

Click the "Submit" button and wait for confirmation of settings updated
{% endstep %}

{% step %}

### Test the Integration

Verify that your PAT has been successfully configured by clicking the "Test" button and reviewing the response for success or any errors.
{% endstep %}
{% endstepper %}

## Actions

| Action              | Description                                                                                                       |
| ------------------- | ----------------------------------------------------------------------------------------------------------------- |
| 👁️ View Results    | Clicking this button will pop out a table showing you the results of the most recent connection attempt to GitHub |
| ⬇️ Download Results | Clicking this button will download the most recent connection attempt to GitHub in a CSV formatted file           |

***

## Feature Requests / Ideas

We value your feedback and ideas. Please raise any [feature requests](https://github.com/KelvinTegelaar/CIPP/issues/new?template=feature.yml) on GitHub.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cipp.app/user-documentation/cipp/integrations/github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
