Workflows / Codex triage with JSON output schema Codex Issue opened Not executed· 2 caveats
Codex triage with JSON output schema issues: opened
`output-schema` is forwarded to `codex exec --output-schema` (README inputs table).
Estimated cost per run
~$0.01 runner + OpenAI tokens (UNVERIFIED)
Estimated, not measured.
Basis. 2 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
Assumes final-message is the raw JSON object; not tested. Labels must already exist in the repo. Workflow YAML Copy the file as-is. Highlighting is only for reading.
1 name : Codex triage 2 on : 3 issues : 4 types : [opened] 5 jobs : 6 triage : 7 runs-on : ubuntu-latest 8 permissions : 9 contents : read 10 issues : write 11 steps : 12 - uses : actions/checkout@v5 13 - id : codex 14 uses : openai/codex-action@v1 15 with : 16 openai-api-key : ${{ secrets.OPENAI_API_KEY }} 17 permission-profile : ":read-only" 18 output-schema : | 19 {"type":"object","properties":{"type":{"enum":["bug","feature","question"]},"priority":{"enum":["p0","p1","p2"]}},"required":["type","priority"],"additionalProperties":false} 20 prompt : Classify issue #${{ github.event.issue.number }} in ${{ github.repository }}. 21 - env : 22 GH_TOKEN : ${{ github.token }} 23 OUT : ${{ steps.codex.outputs.final-message }} 24 run : | 25 T=$(echo "$OUT" | jq -r .type); P=$(echo "$OUT" | jq -r .priority) 26 gh issue edit ${{ github.event.issue.number }} --add-label "type:$T" --add-label "priority:$P" More workflows Codex 12
Two-job split keeps the API key job read-only (README example pattern). `:read-only` profile per README Permission profiles.
pull_request: opened
Estimated cost ~$0.03 runner + OpenAI tokens (UNVERIFIED)
Not executed· 2 caveats Checked Oct 16, 2026
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
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