feat: upgrade to codex 0.131.0 #96
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Codex Autonomous Code Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| permissions: | |
| contents: write # needed for act mode pushes; safe for review mode | |
| pull-requests: write | |
| concurrency: | |
| group: codex-review-${{ github.event.pull_request.number || github.event.issue.number || github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| review: | |
| name: Review | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Codex binary fetch dependencies | |
| run: python3 -m pip install zstandard | |
| - name: Fetch bundled codex binary | |
| env: | |
| CODEX_BINARY_RELEASE_TAG: ${{ vars.CODEX_BINARY_RELEASE_TAG || 'rust-v0.131.0' }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| set -euo pipefail | |
| python3 scripts/fetch_codex_binary.py \ | |
| --release-tag "$CODEX_BINARY_RELEASE_TAG" \ | |
| --target-triple x86_64-unknown-linux-musl | |
| test -x codex/vendor/x86_64-unknown-linux-musl/codex/codex | |
| - name: Codex autonomous review | |
| uses: gersmann/codex-review-action@v1 | |
| with: | |
| mode: review | |
| openai_api_key: ${{ secrets.OPENAI_API_KEY }} | |
| model: gpt-5 | |
| reasoning_effort: medium | |
| debug_level: 1 | |
| act: | |
| name: Act on /codex comments | |
| if: >- | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/codex')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/codex')) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Codex binary fetch dependencies | |
| run: python3 -m pip install zstandard | |
| - name: Fetch bundled codex binary | |
| env: | |
| CODEX_BINARY_RELEASE_TAG: ${{ vars.CODEX_BINARY_RELEASE_TAG || 'rust-v0.131.0' }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| set -euo pipefail | |
| python3 scripts/fetch_codex_binary.py \ | |
| --release-tag "$CODEX_BINARY_RELEASE_TAG" \ | |
| --target-triple x86_64-unknown-linux-musl | |
| test -x codex/vendor/x86_64-unknown-linux-musl/codex/codex | |
| - name: Codex autonomous edits | |
| uses: gersmann/codex-review-action@v1 | |
| with: | |
| mode: act | |
| openai_api_key: ${{ secrets.OPENAI_API_KEY }} | |
| model: gpt-5 | |
| debug_level: 1 |