# Register GitHub Account

Registering a GitHub account with gopaddle allows you to unlock the full potential of runbook hubs for efficient, context-aware troubleshooting. Discover existing hubs or easily create new ones for streamlined documentation and faster issue resolution. Follow the steps to create a repository in GitHub account and register the GitHub account

### Step 1 - Create a new private repository

Create a new private repository (**say demo-hub**) in a GitHub account that would act as a Runbook Hub.

### Step 2 - Create a GitHub Access Token

Create an access token in the GitHub account with permission to read the repository.

1. Select the user profile in GitHub account and click on **Settings**
2. In the **Settings** page, select **Developer Settings** in the left panel.
3. Choose **Personal access tokens** and **Tokens (classic)**

<div align="left"><figure><img src="https://234395929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5QxXxCob5M5VXQJTryRc%2Fuploads%2F0fZQyiFjG6mB73EBcckr%2Fgithub-generate-new-token.png?alt=media&#x26;token=98e4fcc9-25da-44c2-bae9-3ce88fdf0295" alt="" width="311"><figcaption></figcaption></figure></div>

4. Select **Generate new token** and **Generate new token (classic)**
5. Add a note “gopaddle runbook access” to the token for future reference
6. Under **Select scopes**, choose **repo**.

<figure><img src="https://234395929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5QxXxCob5M5VXQJTryRc%2Fuploads%2F9QLgxxZVFcCq8y5e0QVu%2Fgithub-repo-access.png?alt=media&#x26;token=1683248b-eb79-4978-a950-0c24e8950a82" alt=""><figcaption></figcaption></figure>

7. Copy the token

### Step 3 - Register Source Control Account

1. In the gopaddle UI, in the left panel under **Settings**, choose **Code** and then **Accounts**
2. Choose **Register Source Control Account**
3. Select **Token** and provide the GitHub token

<div align="left"><figure><img src="https://234395929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5QxXxCob5M5VXQJTryRc%2Fuploads%2FhdgCMfHTAkgV2HN8nd73%2Fgithub-registration-auth-token.png?alt=media&#x26;token=4d8e7ff9-48e7-4b90-bb15-e2ce40f34fdd" alt="" width="375"><figcaption><p>Register GitHub Account in gopaddle</p></figcaption></figure></div>

4. Click **Register**: This will register and discover any pre-existing runbook hubs (ie., repositories with **.gp.yaml**). If there are no pre-existing hubs, a new hub can be created at a later stage.
