From 10d826d1b17ab26521359a11e08dbe3e7ead8d31 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 20 Jul 2026 15:00:32 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=94=B9=E4=BB=A5=20PAT=EF=BC=88p?= =?UTF-8?q?ush-token=EF=BC=89=E6=8E=A8=E9=80=81=20findings=20commit=20?= =?UTF-8?q?=E8=A7=B8=E7=99=BC=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 各 job 的 token 改用 gitea.token、並新增 push-token: secrets.TOKEN,讓結果 commit 以 PAT 推送再觸發 CI,避免自動 token 推送不觸發而卡合併。 Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/ci.yaml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 357a7ed..c623ab1 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -42,10 +42,13 @@ jobs: uses: ./ # 傳入 action inputs。 with: - # Gitea / GitHub token,用於 PR 留言與 findings 寫回。 - token: ${{ secrets.GITHUB_TOKEN }} + # Gitea Actions 自動注入的 repo 範圍 token,用於 PR 留言與 findings 寫回。 + token: ${{ gitea.token }} # 啟用建問題模式:審查內容改發到追蹤 issue,並在 PR 回貼 issue 連結。 create-issue: 'true' + # 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI, + # 由步驟 1 快速回報把結果蓋到新 head,避免自動 token 推送不觸發而卡合併。 + push-token: ${{ secrets.TOKEN }} # Codex 工具環境測試 job。 test-codex: # Job 在 workflow UI 顯示的名稱。 @@ -70,10 +73,13 @@ jobs: uses: ./ # 傳入 action inputs。 with: - # Gitea / GitHub token,用於 PR 留言與 findings 寫回。 - token: ${{ secrets.GITHUB_TOKEN }} + # Gitea Actions 自動注入的 repo 範圍 token,用於 PR 留言與 findings 寫回。 + token: ${{ gitea.token }} # 啟用建問題模式:審查內容改發到追蹤 issue,並在 PR 回貼 issue 連結。 create-issue: 'true' + # 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI, + # 由步驟 1 快速回報把結果蓋到新 head,避免自動 token 推送不觸發而卡合併。 + push-token: ${{ secrets.TOKEN }} # Claude 工具環境測試 job。 test-claude: # Job 在 workflow UI 顯示的名稱。 @@ -98,7 +104,10 @@ jobs: uses: ./ # 傳入 action inputs。 with: - # Gitea / GitHub token,用於 PR 留言與 findings 寫回。 - token: ${{ secrets.GITHUB_TOKEN }} + # Gitea Actions 自動注入的 repo 範圍 token,用於 PR 留言與 findings 寫回。 + token: ${{ gitea.token }} # 啟用建問題模式:審查內容改發到追蹤 issue,並在 PR 回貼 issue 連結。 create-issue: 'true' + # 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI, + # 由步驟 1 快速回報把結果蓋到新 head,避免自動 token 推送不觸發而卡合併。 + push-token: ${{ secrets.TOKEN }}