Skip to content

ci: add the claude review job - #13

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

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

Conversation

@furedea

@furedea furedea commented Nov 6, 2026

Copy link
Copy Markdown
Owner

全 PR を Claude がレビューする共有 workflow(furedea/reusable-workflows の claude-review.yml)を ci.yml から呼び,all-green の needs に加えます.
P0/P1 の指摘があると all-green が赤になります.PR 以外のイベント,フォークからの PR,furedea-agent 以外の bot の PR ではレビューを飛ばし,成功として扱います.

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

🤖 Generated with Claude Code

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

Refs furedea/agent-config#78

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

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.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Claude review summary

No findings. I checked the change to .github/workflows/ci.yml:

  • The new claude-review job calls the reusable workflow pinned to a full commit SHA, and the comment says renovate keeps it updated.
  • The job grants only contents: read and pull-requests: write. The top-level default stays permissions: {}.
  • The OAuth token goes in as a named secret, not secrets: inherit.
  • claude-review is added to all-green's needs. The existing check fails on failure, cancelled or skipped, so the review gate is enforced.

One thing I could not check: I couldn't read the called workflow at fc0cba9. Two points depend on it:

  • If it asks for any permission beyond contents: read and pull-requests: write (for example id-token: write), the call will fail at startup.
  • When the review is skipped (push to main, fork PRs, other bots), the job has to finish as success and not skipped. Otherwise all-green turns red.

The PR's test-plan checkboxes cover both, so a green run on this PR confirms them.

Blocking findings (P0/P1): 0

@furedea
furedea merged commit 7b7d22b into main Nov 6, 2026
14 checks passed
@furedea
furedea deleted the ci/add-the-claude-review-job branch November 6, 2026 12:28
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