From 2a527288344a57061ff7ca19370c0940700ab816 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jul 2026 02:29:21 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=98=BE=E5=BC=8F=E6=8E=88=E4=BA=88=20Ac?= =?UTF-8?q?tion=20=E5=86=99=E5=85=A5=E6=9D=83=E9=99=90=E4=BB=A5=E7=AA=81?= =?UTF-8?q?=E7=A0=B4=20403=20=E5=B0=81=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/star_history.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/star_history.yml b/.github/workflows/star_history.yml index bf9796dc..fb2714c9 100644 --- a/.github/workflows/star_history.yml +++ b/.github/workflows/star_history.yml @@ -5,6 +5,10 @@ on: - cron: '0 0 * * *' # 每天 UTC 零点自动触发执行 workflow_dispatch: # 允许您在 GitHub 网页上手动点击运行 +# 👇 [核心修复] 显式向 GitHub 申请对代码库的写入权限 +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -30,4 +34,4 @@ jobs: git config --local user.name "github-actions[bot]" git add data/star_history.svg git commit -m "chore: 自动化更新 Star 趋势图 (Native Curl 双擎版)" || exit 0 - git push origin main + git push origin main \ No newline at end of file