chore(ci): 審查 job 的 token 改用 secrets.TOKEN
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
7823718ff4
commit
7b5c7c3e4f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user