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
7 changes: 5 additions & 2 deletions .github/workflows/security-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,10 @@ jobs:
# The run ended without an answer because the account has no credit
# left: Claude Code marks that error billing_error ("Credit balance
# is too low"); a spend limit of the workspace comes as an API error
# of its own. Only error events count, never text the agent wrote.
# of its own, "You have reached your specified workspace API usage
# limits" (until 17.11.2026 without "workspace", which the check
# missed, so the second account was never asked). Only error events
# count, never text the agent wrote.
out_of_credit() {
jq -nR -e '[inputs | fromjson?] as $events
| ([$events[] | select(.type == "result")] | last) as $result
Expand All @@ -1250,7 +1253,7 @@ jobs:
.error == "billing_error"
or (.type == "result" and .is_error == true
and ((.result // "") | tostring
| test("credit balance is too low|specified API usage limits"; "i"))))' \
| test("credit balance is too low|specified (workspace )?API usage limits"; "i"))))' \
"$RUNNER_TEMP/claude.jsonl" > /dev/null 2>&1
}

Expand Down
Loading