Elffuss BraidHub

kikocis/utopia public

Say why the token has to be classic, since the error only appears at run time (#181)
Changeset2aaf42ceca1994661eaf45bd98542e79b2298be2b64445e1fc31218350bfd8f0
AuthorWaylandYang <145302500+WaylandYang@users.noreply.github.com> · 2026-09-02 17:36 +08:00
CommitterGitHub <noreply@github.com> · 2026-09-02 17:36 +08:00
Parentsd886dd6c4e30

Browse the files at this changeset

1 file changed

modified .github/workflows/star-history.yml +10 −0
@@ -22,7 +22,17 @@
2222 uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6
2323 with:
2424 filename: assets/star-history.svg
25+ # **必须是 classic token,fine-grained 的会被直接拒收**:这个
26+ # action 走 GraphQL,而 GitHub 的 fine-grained token 不能用于
27+ # GraphQL 认证。试过,报的就是这句话。
28+ #
29+ # 一个 scope 都不用勾——只读公开仓库的星标是公开数据。
30+ # 代价是 classic token 锁不到单个仓库,它是账户级的;
31+ # 那正是上面把 action 钉到 commit 的理由:凭据比想要的宽,
32+ # 就把代码的来源钉死。
2533 token: ${{ secrets.METRICS_TOKEN }}
34+ # 这个不用配:它管的是把生成的 SVG 提交回仓库那一步,
35+ # 用 workflow 自带的 token,靠上面的 `contents: write`
2636 committer_token: ${{ github.token }}
2737 user: ${{ github.repository_owner }}
2838 repo: ${{ github.event.repository.name }}