openai/codex-action
by openai · 2025-10-01 (repo created)
✓ Repo metadata and README fetched from GitHub on 2026-10-15
Read the original ↗OpenAI's action runs Codex CLI inside a workflow with locked-down privileges; the README's example posts a code review comment on each new PR.
- Installs Codex CLI and routes calls through a secure proxy.
- Example workflow: shallow clone, fetch base and head, run Codex with a PR-specific prompt, post the output as a comment.
Summary written by Agent Cookbook. See the original for the full context.
Adapted by us from what the source described. Fill in the [BRACKETS].
The prompt
Set it up
- Add the key as a secret.
- Copy the README example workflow.
- Replace the prompt with the one above.
- Read the repo's security doc and keep permissions read-only.
Common failures
- Noisy nitpicks. Tell it to report only real problems.
- Forked PRs can't read secrets by default; that's intended.
Variations
- Run on a label instead of every PR.
- Pair with the Claude action and compare reviews.