-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git 拉取无效 #1224
Comments
Same here. But when I clicked Pull, the error log is
And I found this was fixed here. Maybe we need to bump up the go-git kit? |
现在是否还存在这样的问题? |
ssh: no key found 是什么问题 |
使用git有更详细的教程吗 |
自2021年11月13日起,GitHub停止接受使用基本身份验证(Basic Authentication)的密码登录。这意味着你不能直接使用Basic Auth登录GitHub。 GitHub现在要求使用个人访问令牌(Personal Access Token,PAT)或使用SSH密钥进行身份验证。PAT是一个专门用于身份验证的令牌,你可以在GitHub的设置页面上生成和管理它。生成PAT后,你可以将其用作密码来访问GitHub的API、命令行界面或其他需要身份验证的应用程序。 如果你想使用命令行界面与GitHub进行交互,你可以使用PAT来代替密码进行认证。例如,在使用Git命令行进行操作时,你可以使用PAT作为密码。 需要注意的是,如果你已经生成了PAT,要妥善保管它,不要泄露给他人。PAT相当于你的密码,可以访问你有权限的GitHub资源。如果你怀疑PAT已经泄露,你可以在GitHub上撤销它,并生成一个新的。 总结来说,GitHub不再支持直接使用Basic Auth进行登录,而是要求使用个人访问令牌(PAT)或SSH密钥进行身份验证。 |
因此,在Crawlab中,如果你的仓库是GitHub代码仓库,请将你的密码替换成PAT,再进行拉取即可。 |
Bug 描述
在爬虫详情配置页,git 模块,点击拉取无反应,日志提示需要认证,但是在配置页已经添加认证账户和密码
版本描述
docker & docker-compose
![5876b19387359109b90e01297c4cd46](https://user-images.githubusercontent.com/42339196/199868107-fc0970bf-1a4d-47d2-bec5-11ad8c4a482c.jpg)
crawlab
![e44cfa143f918edf5d43b3333857b7a](https://user-images.githubusercontent.com/42339196/199868328-2d046e1c-9238-49c3-8800-dbd82db9c800.jpg)
复现步骤
![image](https://user-images.githubusercontent.com/42339196/199867412-375099eb-784c-47c7-9a64-ed0f0feafe19.png)
期望结果
可以拉取远程文件
日志报错信息
![f6f7b0697d4d5bf32c0eeac740554bc](https://user-images.githubusercontent.com/42339196/199867699-73235643-c4c0-4c22-b609-16eae769d620.jpg)
日志文件记录
err.log
The text was updated successfully, but these errors were encountered: