Repository navigation
ci: review every pull request with Claude - #79
Conversation
Closes #78 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Claude review summary No P0/P1 findings. Reviewed the two new workflows: the Minor note (not posted inline): the 'Explain review failure' step always lists the token-expiry hint, even when the failure is something else, such as a Dependabot-triggered run that has no access to blocking_findings: 0 🤖 Generated with Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
|
||
| // Shell injection: untrusted input is executed as a shell command. | ||
| function runUserCommand(userInput) { | ||
| return execSync(userInput).toString(); |
There was a problem hiding this comment.
P1: execSync(userInput) runs arbitrary input as a shell command, which is command injection. Nothing in the repo imports this module today, so it can't be exploited yet. But a scratch "probe" file shouldn't be merged, and anyone who wires it up later inherits the hole. Remove the whole tmp-review-check/ directory from this PR.
|
|
||
| // Hardcoded credential and an always-true fallback bypass the check. | ||
| function checkPassword(supplied) { | ||
| return supplied === "admin123" || true; |
There was a problem hiding this comment.
P1: checkPassword always returns true because of || true, and it also hardcodes the credential admin123. Any caller gets an authentication bypass. Like the finding above, remove this file from the PR.
|
Review summary
Blocking findings: 2 (P1). |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Review summary: no P0/P1 findings. The PR adds a Claude review workflow and a reusable workflow. Actions are pinned by SHA, permissions are minimal, fork PRs are skipped, and the fail-on-blocking step validates its output before using it. I didn't find a bug or security problem worth flagging. Blocking findings: 0 |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Review summary: No P0/P1 findings. I read the full diff: the caller workflow, the reusable workflow, the fork guard, SHA-pinned actions, minimal permissions, the tool allowlist, and the structured-output gate. I found nothing that should block the merge. One optional note (P3): in the "Explain review failure" step, if the review step succeeds but returns malformed structured output, the summary says "Blocking findings (P0/P1): read the inline review comments". That is misleading, because the real cause is invalid output. You could check for this case separately. 🤖 Generated with Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Review summary: No P0–P3 findings. I read the gate, failure-explanation and fork-skip logic and found no correctness or security problems. The Blocking findings (P0/P1): 0 🤖 Generated with Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude review summaryI reviewed What I checked:
Blocking findings: 0 |
Remove the local review workflows and call furedea/reusable-workflows instead, as a claude-review job that all-green waits for. Closes #78 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Claude review summary No blocking findings. The caller-side change is small and looks right:
I couldn't check the reusable workflow at 🤖 Generated with Claude Code |
概要
すべての pull request に Claude のレビューを付けます.レビュー本体は共有リポジトリ furedea/reusable-workflows の
claude-review.ymlにあり,agent-config はci.ymlの 1 ジョブとして呼びます.ci.ymlにclaude-reviewジョブを追加しました.uses: furedea/reusable-workflows/.github/workflows/claude-review.yml@fc0cba95e88e0cdad9837bf8212d324f3cad50a5 # main(full SHA 固定)で,contents: readとpull-requests: writeだけを付与し,シークレットclaude_code_oauth_tokenにCLAUDE_CODE_OAUTH_TOKENを渡します.ifは付けていません(実行するかどうかは再利用側が決め,その判定ジョブは常に成功します).all-greenのneedsにclaude-reviewを加えました.P0/P1 が残っている PR はall-greenが赤になります.claude_review.ymlとclaude_review_reusable.ymlは削除しました(本体は reusable-workflows に移っています).Closes #78
経緯と検証
この PR は最初,agent-config 内にレビューのワークフローを置く設計でした.その版で,PR を開いたときの実行,push での再実行,P0/P1 でのチェック失敗を確認し,所要時間は約 28〜44 秒でした.その後,本体を reusable-workflows に移す設計に変わったため,この PR を作り直しました.
別リポジトリからの呼び出しは,この PR(
3b8fff6)で確認しました(run 42205020745).claude-review / Decide whether to review(4 秒)とclaude-review / Claude review(44 秒)が成功した.all-greenが緑になり,チェックは全 20 件が成功した.Claude review の指摘は 1 点で,
pushや fork での挙動が未確認という注意でした.再利用側(fc0cba9)を読んで確認したところ,不具合ではありません.Decideジョブはpull_request以外(push),fork の PR,furedea-agent以外の bot の PR でfalseを出し,Claude reviewジョブだけがスキップされます.Decideジョブは常に成功するので,呼び出し側のジョブがskippedになってall-greenを落とすことはありません.--model claude-opus-5-5,--effort mediumで固定されています.fork の PR と bot の PR で実際に動かした確認は,この PR では行っていません(この PR は同一リポジトリの通常の PR のため).
actionlint,zizmor(新しい箇所の指摘なし.既存の
./.github/actions/...への low の指摘 3 件は元からある),ls-lint はローカルで通っています.🤖 Generated with Claude Code