--- title: GitHub credentials description: Documentation for GitHub credentials. Use these credentials to authenticate GitHub in n8n, a workflow automation platform. contentType: integration --- # GitHub credentials You can use these credentials to authenticate the following nodes with GitHub. - [GitHub](/integrations/builtin/app-nodes/n8n-nodes-base.github/) - [GitHub Trigger](/integrations/builtin/trigger-nodes/n8n-nodes-base.githubtrigger/) - [GitHub Document Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.documentgithubloader): this node doesn't support OAuth. ## Prerequisites Create a [GitHub](https://github.com/){:target=_blank .external-link} account. ## Using OAuth /// note | n8n Cloud users You'll only need to enter the Credentials Name and click on the circle button in the OAuth section to connect your GitHub account to n8n. /// 1. Open your GitHub [dashboard](https://github.com){:target=_blank .external-link}. 2. Select your user icon in the top right. 3. Select **Settings** > **Developer settings** >**OAuth Apps**. 4. Select **Register a new application** . 5. Enter the **Application name** and **Homepage URL**. 6. Copy the **OAuth Callback URL** from n8n and paste it in the **Authorization callback URL** field. 7. Select **Register application**. 8. Copy the **Client ID**. 9. Enter the name for your credentials in the **Credentials Name** field in **GitHub OAuth2 API** credentials in n8n. 10. Paste the client ID in the **Client ID** field in **GitHub OAuth2 API** credentials in n8n. 11. On your application page, select **Generate a new client secret**. 12. Copy the displayed **Client Secret**. 13. Paste the client secret in the **Client Secret** field in **GitHub OAuth2 API** credentials in n8n. 14. Select the circle button in the OAuth section to connect a GitHub account to n8n. 15. Select **Save** button to save your credentials in n8n. The following video demonstrates the steps mentioned above.