Skip to content
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

评论需要所有repo的读写权限 #3

Open
wks opened this issue Oct 5, 2022 · 3 comments
Open

评论需要所有repo的读写权限 #3

wks opened this issue Oct 5, 2022 · 3 comments

Comments

@wks
Copy link

wks commented Oct 5, 2022

你的博客的评论功能需要github帐号登录,但该应用试图获取所有repo的读写权限

Codesire-Deng's Blog by Zifeng Deng
wants to access your wks account
Repositories
Public repositories

This application will be able to read and write all public repository data. This includes the following:

Code
Issues
Pull requests
Wikis
Settings
Webhooks and services
Deploy keys

这不正常。这几乎相当于把整个帐号的控制权都交给了你的网站的评论功能。

@Codesire-Deng
Copy link
Owner

感谢反馈,之前做的评论区没认真测试过😂,我会去检查一下。
你的上一个issue我也看到了,感谢👍,只是我用firefox没有复现成功,暂时搁置了

@Codesire-Deng
Copy link
Owner

OI-wiki: gitalk 为什么需要写我的repo
gitalk: 能否最小化权限?
hexo-theme-cards: 支持更多评论系统
gitalk官方demo也需要过高的权限

找到了一些同类的例子,看来是早期 Github 开放的权限粒度过于粗糙,导致一众评论系统都有这个问题。

因为无法通过简单配置 Gitalk 来解决,这个问题可能需要更多时间来研究🙇

@Codesire-Deng
Copy link
Owner

这是一个临时办法😂:点击评论区的 xx comment,可以直达 Issues,在那里评论即可绕过授权。
comment_from_issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants