develop
master
將 develop 上「新增顯示 Codex 帳號步驟」的變更合併至 master。在 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
Reviewed-on: #8 Reviewed-by: 系統管理員 <1+admin@noreply.localhost>
No dependencies set.
The note is not visible to the blocked user.
變更摘要
將
develop上「新增顯示 Codex 帳號步驟」的變更合併至master。在 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 結構改變,此步驟可能失敗,建議評估加上容錯。