fix(推送觸發 CI): 合併 push-token 進 token,findings 一律以 token 認證推送觸發 CI
- 移除 push-token input,token 兼作 Gitea API 認證與 findings 推送
- commitAndPushFindings 一律以 token 明確認證推送(不走 origin 自動 token);
只要 token 為能觸發 CI 的 PAT,結果 commit 即再觸發 PR 的 CI,避免新 head 缺檢查卡合併
- ci.yaml 三個 job 移除 push-token,保留 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
9e6e8bb793
commit
05178be520
@@ -48,9 +48,6 @@ jobs:
|
||||
create-issue: 'true'
|
||||
# 指定 AI 模型:CI 測試固定用 Antigravity 最省模型以降低消耗。
|
||||
model: gemini-3.5-flash
|
||||
# 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI,
|
||||
# 由步驟 1 快速回報把結果蓋到新 head,避免自動 token 推送不觸發而卡合併。
|
||||
push-token: ${{ secrets.TOKEN }}
|
||||
# Codex 工具環境測試 job。
|
||||
test-codex:
|
||||
# Job 在 workflow UI 顯示的名稱。
|
||||
@@ -81,9 +78,6 @@ jobs:
|
||||
create-issue: 'true'
|
||||
# 指定 AI 模型:CI 測試固定用 Codex 最省模型以降低消耗。
|
||||
model: gpt-5.5
|
||||
# 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI,
|
||||
# 由步驟 1 快速回報把結果蓋到新 head,避免自動 token 推送不觸發而卡合併。
|
||||
push-token: ${{ secrets.TOKEN }}
|
||||
# Claude 工具環境測試 job。
|
||||
test-claude:
|
||||
# Job 在 workflow UI 顯示的名稱。
|
||||
@@ -114,6 +108,3 @@ jobs:
|
||||
create-issue: 'true'
|
||||
# 指定 AI 模型:Claude job 使用 Opus 4.8。
|
||||
model: claude-opus-4-8
|
||||
# 推送 findings/exclusions commit 用的 PAT:以 PAT 身分推送才會讓結果 commit 再觸發 CI,
|
||||
# 由步驟 1 快速回報把結果蓋到新 head,避免自動 token 推送不觸發而卡合併。
|
||||
push-token: ${{ secrets.TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user