ai-review-resolve/develop-20260702-182518
develop
在 composite action 的 OAuth 登入之後,新增一個「Show Codex Account」步驟,從 ~/.codex/auth.json 的 id_token 解析並輸出登入帳號的 email,方便在 workflow log 確認目前使用的 Codex 帳號。
~/.codex/auth.json
id_token
action.yml
Login Codex with OAuth
Show Codex Account
email
console.log
auth.json
tokens.id_token
No dependencies set.
The note is not visible to the blocked user.
變更摘要
在 composite action 的 OAuth 登入之後,新增一個「Show Codex Account」步驟,從
~/.codex/auth.json的id_token解析並輸出登入帳號的 email,方便在 workflow log 確認目前使用的 Codex 帳號。影響範圍
action.yml(composite action 執行步驟)重點變更
Login Codex with OAuth步驟後新增Show Codex Account步驟。id_token(JWT payload 的 base64 段),取出email欄位並console.log輸出。風險與注意事項
auth.json具備tokens.id_token且其 payload 含email欄位;若 token 結構改變(缺少該欄位或格式不同),此步驟可能失敗,建議評估加上容錯。