Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,31 @@ jobs:
claude_args: |
--model claude-opus-4-8
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(go build:*),Bash(go vet:*),Bash(go test:*),Bash(gofmt:*),Bash(node --test:*)"

- name: Verify Claude review actually ran
if: always()
run: |
set -euo pipefail
FILE="/home/runner/work/_temp/claude-execution-output.json"

if [ ! -f "$FILE" ]; then
echo "::error::Claude execution output file not found at $FILE — cannot confirm the review ran, treating as failure."
exit 1
fi

# The file may be a single JSON object or an array of turn objects,
# depending on the action version. Check defensively for either shape.
IS_ERROR=$(jq -r '
if type == "array" then
(any(.[]; (.is_error // false) == true))
else
(.is_error // false) == true
end
' "$FILE")

if [ "$IS_ERROR" = "true" ]; then
echo "::error::Claude Code Review execution log reports is_error=true — the underlying model call failed (e.g. API error or usage cap) even though the action step reported success. Failing the check instead of reporting a false green."
exit 1
fi

echo "Claude review execution output verified: no is_error evidence found."
Loading