Files
codex/.gitea/ai-review/exclusions.json
T
jiantw83 5ce8e91d57
CI / 計算版本號 (pull_request) Successful in 2s
CI / 品質檢查 (pull_request) Failing after 1s
AI / Code Review (pull_request) Failing after 34s
chore(ai-review 狀態): 更新 findings 與 exclusions
2026-06-24 10:33:23 +00:00

27 lines
1.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[
{
"location": "action.yaml:23",
"role": "Assassin",
"original_finding": "將包含認證資訊的 `OAUTH` 透過環境變數傳遞,這使得該敏感資訊在容器內的任何進程皆可透過環境變數(如 `/proc/self/environ`)輕易竊取。",
"reason": "此 action 透過 Gitea/GitHub Docker Action input 接收 secretaction metadata 只能將 input 映射為容器環境變數;呼叫端仍使用 secrets.CODEX_OAUTH,未在 workflow 明文暴露。"
},
{
"location": "entrypoint.sh:18",
"role": "Assassin",
"original_finding": "雖然有 `chmod 600`,但 `auth.json` 放在 `/root/.codex/` 目錄下,若發生容器逃逸,該敏感金鑰極易被讀取。",
"reason": "Codex CLI 目前需要讀取 CODEX_HOME/auth.json;容器內已限制為 600 權限,外部 Secret Store 掛載不是此 Docker Action 目前可控制的介面。"
},
{
"location": "action.yaml:6",
"role": "Leo",
"original_finding": "將 Base64 編碼的認證資訊設為 Action input,導致明文暴露在 Workflow 配置中,難以維護。",
"reason": "workflow 傳入的是 secrets.CODEX_OAUTH,不是明文值;使用 input 是 Docker Action 接收呼叫端 secret 的標準介面。"
},
{
"location": "entrypoint.sh:22",
"role": "Rogue",
"original_finding": "在腳本中頻繁進行 I/O 操作(重複寫入 auth.json),缺乏快取檢查。",
"reason": "每次 Docker Action 執行都是短生命週期容器,auth.json 需要從當次 secret 重建;快取檢查不會降低跨執行 I/O,也可能增加 secret 狀態判斷複雜度。"
}
]