Changesets · Branches · Tags · Compare
| Changeset | 2aaf42ceca1994661eaf45bd98542e79b2298be2b64445e1fc31218350bfd8f0 |
|---|---|
| Author | WaylandYang <145302500+WaylandYang@users.noreply.github.com> · 2026-09-02 17:36 +08:00 |
| Committer | GitHub <noreply@github.com> · 2026-09-02 17:36 +08:00 |
| Parents | d886dd6c4e30 |
1 file changed
modified .github/workflows/star-history.yml +10 −0
| @@ -22,7 +22,17 @@ | ||
| 22 | 22 | uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 |
| 23 | 23 | with: |
| 24 | 24 | 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 | + # 就把代码的来源钉死。 | |
| 25 | 33 | token: ${{ secrets.METRICS_TOKEN }} |
| 34 | + # 这个不用配:它管的是把生成的 SVG 提交回仓库那一步, | |
| 35 | + # 用 workflow 自带的 token,靠上面的 `contents: write` | |
| 26 | 36 | committer_token: ${{ github.token }} |
| 27 | 37 | user: ${{ github.repository_owner }} |
| 28 | 38 | repo: ${{ github.event.repository.name }} |