hexojs / hexojs/hexo-deployer-git

Added personal token in _config.yml but still can't access git

Open
#210 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
588
Forks
120
PR merge metrics
No merged PRs in 30d

Description

I'm using the latest version of hexo-deployer-git but I can't access my repo. Here's the error:
```
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/*****.github.io/': The requested URL returned error: 403
FATAL { err:
{ Error: Spawn failed
at ChildProcess. (F:\Hexo\node_modules\hexo-util\lib\spawn.js:52:19)
at ChildProcess.emit (events.js:198:13)
at ChildProcess.cp.emit (F:\Hexo\node_modules\cross-spawn\lib\enoent.js:40:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) code: 128 } } 'Something\'s wrong. Maybe you can find the solution here: %s' 'https://hexo.io/docs/troubleshooting.html'
```
Here's the _config.yaml for deployer:
```
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository: https://github.com/*****.github.io
branch: master
token: ghp_*****
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.