Workflows / Codex PR review posted as a comment Codex Pull request Not executed· 2 caveats
Codex PR review posted as a comment pull_request: opened
Two-job split keeps the API key job read-only (README example pattern). `:read-only` profile per README Permission profiles.
Estimated cost per run
~$0.03 runner + OpenAI tokens (UNVERIFIED)
Estimated, not measured.
Basis. 5 runner min x $0.006/min GitHub-hosted Linux 2-core (docs.github.com/en/billing/reference/actions-runner-pricing). OpenAI model pricing not checked for this entry — UNVERIFIED.
Verification
Last checked Oct 16, 2026.
inputs checked against source docs; workflow not executed.
Open caveats
README's own example pre-fetches base/head refs in an extra step — omitted here for brevity. actions/github-script@v7 version not checked against README. Workflow YAML Copy the file as-is. Highlighting is only for reading.
1 name : Codex PR review 2 on : 3 pull_request : 4 types : [opened] 5 jobs : 6 codex : 7 runs-on : ubuntu-latest 8 permissions : 9 contents : read 10 outputs : 11 final_message : ${{ steps.run_codex.outputs.final-message }} 12 steps : 13 - uses : actions/checkout@v5 14 with : 15 ref : refs/pull/ ${{ github.event.pull_request.number }} /merge 16 persist-credentials : false 17 - name : Run Codex 18 id : run_codex 19 uses : openai/codex-action@v1 20 with : 21 openai-api-key : ${{ secrets.OPENAI_API_KEY }} 22 permission-profile : ":read-only" 23 prompt : | 24 Review PR # ${{ github.event.pull_request.number }} in ${{ github.repository }} . 25 Focus on correctness and security. Be concise. 26 post_feedback : 27 runs-on : ubuntu-latest 28 needs : codex 29 if : needs.codex.outputs.final_message != '' 30 permissions : 31 pull-requests : write 32 steps : 33 - uses : actions/github-script@v7 34 env : 35 CODEX_FINAL_MESSAGE : ${{ needs.codex.outputs.final_message }} 36 with : 37 script : | 38 await github.rest.issues.createComment({ 39 owner: context.repo.owner, repo: context.repo.repo, 40 issue_number: context.payload.pull_request.number, 41 body: process.env.CODEX_FINAL_MESSAGE, 42 }); More workflows Codex 13
`:workspace` profile lets Codex edit the checkout (README). PR creation is plain git/gh, not an action input.
issues: labeled == codex
Estimated cost ~$0.09 runner + OpenAI tokens (UNVERIFIED)
Not executed· 1 caveat Checked Oct 16, 2026
Codex 14
`output-schema` is forwarded to `codex exec --output-schema` (README inputs table).
issues: opened
Estimated cost ~$0.01 runner + OpenAI tokens (UNVERIFIED)
Not executed· 2 caveats Checked Oct 16, 2026
Claude 01
Copied from the official Solutions Guide basic example (prompt shortened).
pull_request: opened, synchronize
Estimated cost ~$0.18
Not executedChecked Oct 16, 2026