From 7b5c7c3e4ffdc4ba8a11900ed87241aadc629423 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 20 Jul 2026 16:17:34 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E5=AF=A9=E6=9F=A5=20job=20?= =?UTF-8?q?=E7=9A=84=20token=20=E6=94=B9=E7=94=A8=20secrets.TOKEN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index c623ab1..69629f9 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -42,8 +42,8 @@ jobs: uses: ./ # 傳入 action inputs。 with: - # Gitea Actions 自動注入的 repo 範圍 token,用於 PR 留言與 findings 寫回。 - token: ${{ gitea.token }} + # PR 留言與 findings 寫回用的 token(呼叫端以 secrets 傳入)。 + token: ${{ secrets.TOKEN }} # 啟用建問題模式:審查內容改發到追蹤 issue,並在 PR 回貼 issue 連結。 create-issue: 'true' # 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI, @@ -73,8 +73,8 @@ jobs: uses: ./ # 傳入 action inputs。 with: - # Gitea Actions 自動注入的 repo 範圍 token,用於 PR 留言與 findings 寫回。 - token: ${{ gitea.token }} + # PR 留言與 findings 寫回用的 token(呼叫端以 secrets 傳入)。 + token: ${{ secrets.TOKEN }} # 啟用建問題模式:審查內容改發到追蹤 issue,並在 PR 回貼 issue 連結。 create-issue: 'true' # 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI, @@ -104,8 +104,8 @@ jobs: uses: ./ # 傳入 action inputs。 with: - # Gitea Actions 自動注入的 repo 範圍 token,用於 PR 留言與 findings 寫回。 - token: ${{ gitea.token }} + # PR 留言與 findings 寫回用的 token(呼叫端以 secrets 傳入)。 + token: ${{ secrets.TOKEN }} # 啟用建問題模式:審查內容改發到追蹤 issue,並在 PR 回貼 issue 連結。 create-issue: 'true' # 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI,