---
title: Charmhub | Deploy Repo Policy Compliance using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Repo Policy Compliance as a Kubernetes Operator
  on any cloud.
url: https://charmhub.io/repo-policy-compliance/docs/reference-github-auth
---

# Repo Policy Compliance

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 113

```
juju deploy repo-policy-compliance
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://github.com/canonical/repo-policy-compliance)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/repo-policy-compliance/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# GitHub authentication

This section describes the GitHub authentication options available for the charm.

You can either choose to use

* classic personal access tokens
* fine-grained personal access tokens
* a GitHub app

for authentication. The latter two options are recommended for better security and access control.
They require the fine-grained permissions as mentioned below.

**Note**: If you are using a personal access tokens rather than a GitHub app,
the user who owns the token must have administrative access to the organisation or repository,
in addition to having a token with the necessary permissions.

## [Classic personal access token scopes](https://charmhub.io/repo-policy-compliance/docs/reference-github-auth#p-33772-classic-personal-access-token-scopes)

If you want to use classic personal access tokens, you will need to select the `repo`
scope when generating them.

## [Fine grained permissions](https://charmhub.io/repo-policy-compliance/docs/reference-github-auth#p-33772-fine-grained-permissions)

For fine-grained access control, the following repository permissions are required:

* Administration: read
* Contents: read (if you want to check private repositories)
* Pull requests: read (if you want to check private repositories)

---
