chore(ai-review 狀態): 清空 findings 並登記 2 筆測試覆蓋類誤報
CI / 1. BUILD (pull_request) Successful in 3s
CI / 2. TEST (pull_request) Successful in 8m22s
CI / 3. RESULT (pull_request) Successful in 1s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jeffery
2026-07-15 13:38:22 +08:00
co-authored by Claude Fable 5
parent db65ca67d5
commit 7334a0f967
2 changed files with 17 additions and 18 deletions
+1 -18
View File
@@ -1,18 +1 @@
[
{
"level": "warning",
"role": "Maya",
"location": "action.yml:40",
"problem": "這裡把 action 內注入的 token 改成 `GITEA_TOKEN`,但沒有任何測試去鎖住這個 workflow 契約;只要 YAML 欄位名稱或注入來源寫錯,程式就會默默退回匿名呼叫,錯誤很難被第一時間發現。",
"suggestion": "補一個整合測試或 action 介面測試,驗證執行時確實會把 `gitea.token` 帶進 `process.env.GITEA_TOKEN`,且不再依賴舊的 `RUNNER_TOKEN` 輸入。",
"is_new": true
},
{
"level": "warning",
"role": "Maya",
"location": "src/index.js:426",
"problem": "有 token 時會改成記錄 redacted 訊息並建立 `Authorization` header,但目前看不到任何測試在保護這個授權分支;一旦 header 格式或遮蔽輸出出錯,就可能讓 API 請求失敗或把敏感值寫進 log。",
"suggestion": "補一個有 token 的案例,驗證 log 只會出現 `[redacted]`,而實際送出的 header 會是 `token ${GITEA_TOKEN}`,同時不要把明文 token 暴露到輸出中。",
"is_new": true
}
]
[]