Github

Tag
  1. API
Name
Github

Prerequisites

Create a GitHub account.

Supported authentication methods

API Access Token:
We use this method on all GitHub nodes.
OAuth2:
This method only works with GitHub and GitHub trigger nodes, and is not used by the GitHub document loader .

Related Resources

For more information about the service, see the API documentation on GitHub .

Using API Access Tokens

You will need a GitHub account to configure these credentials .
There are two steps to setting up these credentials:
2.
Set your credentials .
Please see the sections below for detailed instructions.

Generate a personal access token

Recommended Access Token Types
N8n recommends using personal access tokens (classic). GitHub's fine-grained personal access tokens are still in beta and do not have access to all endpoints.
To generate a personal access token:
1.
If you haven't already, verify your email address on GitHub.
For more information, see Verifying Your Email Address .
2.
Open your GitHub profile settings .
3.
Select Developer Settings from the left navigation .
4.
In the left navigation, under Personal Access Tokens, select Tokens (Classic ) .
5.
Select Create New Token > Create New Token (Classic ) .
6.
Enter a descriptive name for the token in the Memo field. n8n integration
7.
Select the desired expiration for the token or select No expiration .
8.
Select the scope of the token . n8n repo for GitHub node
Just select the range
Tokens that are not scoped can only access public information.
Reference
9.
Select Generate Token .
10.
Copy the token.
For more information, see Creating a Personal Access Token (Classic) . For more information about GitHub scopes, see Scopes for OAuth Apps .

Set credentials

Then with your n8n credentials:
1.
If you are not using GitHub Enterprise Server, do not change your GitHub server URL.
If you're using GitHub Enterprise Server, update your GitHub server to match the URL of your server .
2.
Enter your username as it appears on your GitHub profile .
3.
Enter the access token generated above .