diff --git a/.github/workflows/security-review.yml b/.github/workflows/security-review.yml index e39f85b..1a3810a 100644 --- a/.github/workflows/security-review.yml +++ b/.github/workflows/security-review.yml @@ -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 @@ -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 }