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

github token格式已更新,无法使用github-monitor #109

Open
test2504 opened this issue Apr 6, 2021 · 7 comments
Open

github token格式已更新,无法使用github-monitor #109

test2504 opened this issue Apr 6, 2021 · 7 comments

Comments

@test2504
Copy link

test2504 commented Apr 6, 2021

4月5号,github更新了token的格式,导致github_monitor没法正常使用。
麻烦尽快更新一下新版本。

@PINGXcpost
Copy link

真的吗

@AnYeMoWang
Copy link
Member

@lookie1999 @test2504 @lookie1999 最近比较忙 一直没时间处理 等我有时间了看一下~ 不好意思哈

@gdbingo
Copy link

gdbingo commented Jul 23, 2021

我最近也发现这个问题了,我还以为是我更新了token但是没重启服务的原因,麻烦尽快更新一下版本吧。github的token半年过期,还没发现问题的应该是还没到期更新token。

@test2504
Copy link
Author

@AnYeMoWang 由于github新token的问题,github_monitor已经罢工了。麻烦抽空看一下。

@elealan
Copy link

elealan commented Aug 6, 2021

原因:
pygithub 1.55版本才支持新的github token
深层原因:
ubuntu 16.04 的python为3.5.2,然而pygithub1.55使用了3.6的f字符串特性,导致报语法错误

修复方案

  1. docker-compose stop,备份数据
  2. 修改Dockerfile中,From ubuntu:18.04
  3. 修改server/requirements.pip中,去掉pygithub的固定版本(或者指定到最新)
  4. 执行,docker-compose up -d --no-deps --build, docker rebuild

@fauns-o
Copy link

fauns-o commented Mar 24, 2022

Hello, where should I get the token from? Can the token generated by my GitHub account only scan the resources on my GitHub?

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

7 participants
@AnYeMoWang @elealan @gdbingo @test2504 @PINGXcpost @fauns-o and others