Skip to content

ci: add the codex review job - #13

Merged
furedea merged 1 commit into
mainfrom
ci/add-the-codex-review-job
Nov 6, 2026
Merged

furedea merged 1 commit into
mainfrom
ci/add-the-codex-review-job

Conversation

@furedea

@furedea furedea commented Nov 6, 2026

Copy link
Copy Markdown
Owner

全 PR を Codex がレビューする共有 workflow(furedea/reusable-workflows の codex-review.yml)を ci.yml から呼び,all-green の needs に加えます.
CI がオーナーの token で @codex review を投稿し,HEAD の commit に未解決の指摘があるか,Codex が失敗するか,20 分以内に結果がないと all-green が赤になります.PR 以外のイベント,フォークからの PR,furedea-agent 以外の bot の PR では飛ばし,成功として扱います.

  • codex-review / Decide whether to review と codex-review / Codex review が成功する
  • all-green が green になる
出典

🤖 Generated with Claude Code

Call the shared codex-review workflow from furedea/reusable-workflows
and require it in all-green.

Refs furedea/reusable-workflows#7

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 16:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@furedea

furedea commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T16:41:35.400846Z fd1f389 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Review summary: no blocking findings.

The diff adds a codex-review job that calls furedea/reusable-workflows/.github/workflows/codex-review.yml pinned to a commit SHA, passes only CODEX_REVIEW_TOKEN, and adds the job to all-green.needs. The caller sets permissions: {}, so the default GITHUB_TOKEN gets no permissions, which is the least-privilege choice.

What I could not verify: I didn't read the called codex-review.yml at 9bea83d. If any of its jobs asks for GITHUB_TOKEN permissions (for example pull-requests: read), a caller with permissions: {} makes the run fail at startup. The PR checklist (codex-review / * succeeds) will confirm whether it works.

Also confirm that on push events the called workflow's jobs only skip at the job level, so the caller job reports success. all-green treats a skipped result as a failure. The PR description says this is the intended behavior.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: fd1f38901f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit 502a35c into main Nov 6, 2026
17 checks passed
@furedea
furedea deleted the ci/add-the-codex-review-job branch November 6, 2026 17:11
furedea added a commit that referenced this pull request Nov 8, 2026
GitHub Actions の lint(actionlint,zizmor),dependency review,nix
lint,flake check を,furedea/reusable-workflows v1.0.0 の共有 workflow
から呼ぶように変えます.4 つとも `all-green` の `needs` に入るので,失敗するとマージできません.

| 項目 | 今 | 変更後 |
| --- | --- | --- |
| 共有 workflow の固定 | `@<sha> # main`(main が進むと zizmor の
`ref-version-mismatch` で落ちる) | `@<sha> # v1.0.0` |
| actionlint / zizmor | `gha_lint.yml`(workflow を変えた PR だけ) | `ci.yml`
から `gha-lint.yml` を呼ぶ(全 PR,`all-green` に入る) |
| dependency review | `dependency_review.yml`(`all-green` の外),または無し |
`ci.yml` から `dependency-review.yml` を呼ぶ.非公開 repo と PR 以外では飛ばして成功扱い |
| nix lint | `ci.yml` に直接書いたジョブ | `nix-lint.yml` を呼ぶ |
| flake check | repo ごと(無い repo もある) | `nix-check.yml` を呼ぶ(`nix flake
check -L` と全 system の評価) |
| CodeQL | 非公開でも動く | 非公開 repo では飛ばす.codeql-action を v4.39.2 に |
| claude-review / codex-review | `# main` の古い SHA | `# v1.0.0` |

- [ ] `gha-lint / …`,`dependency-review / …`,`nix-lint /
nix-lint`,`nix-check / nix-check` が成功する
- [ ] `all-green` が green になる

<details><summary>出典</summary>

- 計画: furedea/reusable-workflows#6,#13
- 呼び出し先: furedea/reusable-workflows v1.0.0(c1a43f6).以後は release ごとに
Renovate が更新する
- 消した `.github/dependency_review_config.yml` は共有 workflow
の既定値(`fail-on-severity: high`)と同じだった

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
furedea added a commit that referenced this pull request Nov 8, 2026
GitHub Actions の lint(actionlint,zizmor),dependency review,nix
lint,flake check を,furedea/reusable-workflows v1.1.0 の共有 workflow
から呼ぶように変えます.呼んだジョブは `all-green` の `needs` に入るので,失敗するとマージできません.CodeQL は
workflow をやめ,GitHub の default setup に移します.

| 項目 | 今 | 変更後 |
| --- | --- | --- |
| 共有 workflow の固定 | `@<sha> # main`(main が進むと zizmor の
`ref-version-mismatch` で落ちる) | `@<sha> # v1.1.0` |
| actionlint / zizmor | `gha_lint.yml`(workflow を変えた PR だけ) | `ci.yml`
から `gha-lint.yml` を呼ぶ(全 PR,`all-green` に入る) |
| dependency review | `dependency_review.yml`(`all-green` の外),または無し |
`ci.yml` から `dependency-review.yml` を呼ぶ.非公開 repo と PR 以外では飛ばして成功扱い |
| nix lint | `ci.yml` に直接書いたジョブ | `nix-lint.yml` を呼ぶ |
| flake check | repo ごと(無い repo もある) | `nix-check.yml` を呼ぶ(`nix flake
check -L` と全 system の評価) |
| CodeQL | `codeql.yml`(非公開 repo でも動いて失敗する) | `codeql.yml` を消す.public
repo は default setup をオンにする(本人が設定) |
| claude-review / codex-review | `# main` の古い SHA | `# v1.1.0` |

- [ ] 呼んだ共有ジョブがすべて成功する
- [ ] `all-green` が green になる

<details><summary>出典</summary>

- 計画: furedea/reusable-workflows#6,#13
- 呼び出し先: furedea/reusable-workflows v1.1.0(ca7c5f2).以後は release ごとに
Renovate が更新する
- CodeQL の default setup:
https://docs.github.com/en/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants