How to interact with Github Repos nowadays

Describe the issue/error/question

I’m trying to clone a github repository, change some of the files and then stage and commit them and finally push them back to origin

What is the error message (if any)?

Turns out, Github removed the option to access a repo via username + password, therefore even cloning a repo with the git node fails

Please share the workflow

Share the output returned by the last node

Error: Cloning into '.'...
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see for more information.
fatal: Authentication failed for ''

    at Object.action (/usr/local/lib/node_modules/n8n/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js:30:33)
    at PluginStore.exec (/usr/local/lib/node_modules/n8n/node_modules/simple-git/src/lib/plugins/plugin-store.js:21:33)
    at /usr/local/lib/node_modules/n8n/node_modules/simple-git/src/lib/runners/git-executor-chain.js:95:45
    at new Promise (<anonymous>)
    at GitExecutorChain.handleTaskData (/usr/local/lib/node_modules/n8n/node_modules/simple-git/src/lib/runners/git-executor-chain.js:93:16)
    at GitExecutorChain.<anonymous> (/usr/local/lib/node_modules/n8n/node_modules/simple-git/src/lib/runners/git-executor-chain.js:77:46)
    at (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/n8n/node_modules/simple-git/src/lib/runners/git-executor-chain.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Information on your n8n setup

  • n8n version: 0.166.0
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]: cloud

Hey @jodeldiplomant,

Do you have a workflow you can share that reproduces the issue? Normally for anything with Github I would use the Github node which supports OAuth or an access token.

I don’t have a workflow I could share, since I’m just trying out the git node right now.
Correct me if I’m wrong but the github node doesn’t support cloning an entire repo, does it?
I know that it can edit files, but I would prefer having the entire repo and then overwriting entire files.

@jodeldiplomant that is correct, There is no cloning of an entire repo in the Github node.

Using the Git node with Github you would need to follow the message that Github has responded with and create a personal access token and use that instead of the password.

Aight, sounds good. One question though: how do I use the personal access token instead of a password? The git node only offers the option to use credentials, which only offer the option to put in username + password

Hey @jodeldiplomant,

Instead of the password you just pop in the access token so it becomes username and access token.

1 Like