Skip to content

[aw] Daily VulnHunter Scan exceeded max AI credits #47216

Description

@github-actions

Workflow Failure

Workflow: Daily VulnHunter Scan
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/29896892294

Warning

AI Credits Budget Exceeded

The workflow hit the configured max-ai-credits guardrail. Used 1K of 1K max (over by 30.9).

Increase the limit

Update max-ai-credits in your workflow frontmatter:

max-ai-credits: 2000
Tips for reducing AI credit usage
  • Review the cost optimization guidance.
  • Reduce unnecessary model or tool calls in the prompt.
  • Trim large inputs or excess context that does not change the outcome.
  • Split large tasks across smaller runs when possible.

Warning

Engine Failure: The claude engine terminated unexpectedly.

Last agent output:

2026-07-22T06:40:12.649Z [DEBUG] [API REQUEST] /v1/messages source=sdk
2026-07-22T06:40:14.261Z [ERROR] API error (attempt 1/11): 403 403 {"error":{"type":"ai_credits_limit_exceeded","message":"Maximum AI credits exceeded (1030.901975 / 1000).","total_ai_credits":1030.901975,"max_ai_credits":1000,"hard_cap":false}}
{"type":"assistant","message":{"id":"fcc5878e-df7f-4e3b-b7c0-0ca9c68bf01d","container":null,"model":"<synthetic>","role":"assistant","stop_details":null,"stop_reason":"stop_sequence","stop_sequence":"","type":"message","usage":{"input_tokens":0,"output_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":null,"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":null,"iterations":null,"speed":null},"content":[{"type":"text","text":"Failed to authenticate. API Error: 403 Maximum AI credits exceeded (1030.901975 / 1000)."}],"context_management":null},"parent_tool_use_id":null,"session_id":"60c6e1e9-0ffa-4f9b-b891-f0c140f55c85","uuid":"1c3e355f-2666-460a-9496-b909facaa213","timestamp":"2026-07-22T06:40:14.262Z","error":"authentication_failed"}
{"type":"result","subtype":"success","is_error":true,"api_error_status":403,"duration_ms":495921,"duration_api_ms":957027,"num_turns":57,"result":"Failed to authenticate. API Error: 403 Maximum AI credits exceeded (1006.438250 / 1000).","stop_reason":"stop_sequence","session_id":"60c6e1e9-0ffa-4f9b-b891-f0c140f55c85","total_cost_usd":6.038629500000003,"usage":{"input_tokens":111,"cache_creation_input_tokens":244435,"cache_read_input_tokens":8291800,"output_tokens":21726,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":244435},"inference_geo":"global","iterations":[],"speed":"standard"},"modelUsage":{"claude-sonnet-4.6":{"inputTokens":4112,"outputTokens":55532,"cacheReadInputTokens":11007132,"cacheCreationInputTokens":543455,"webSearchRequests":0,"costUSD":6.185411850000003,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"api_error","fast_mode_state":"off","uuid":"ccf2921d-40f0-4aeb-b2b8-8ee8fd2af52b"}
{"type":"result","subtype":"success","is_error":true,"api_error_status":403,"duration_ms":345,"duration_api_ms":1000920,"num_turns":1,"result":"Failed to authenticate. API Error: 403 Maximum AI credits exceeded (1017.188350 / 1000).","stop_reason":"stop_sequence","session_id":"60c6e1e9-0ffa-4f9b-b891-f0c140f55c85","total_cost_usd":6.103130100000003,"usage":{"input_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{"claude-sonnet-4.6":{"inputTokens":4112,"outputTokens":55532,"cacheReadInputTokens":11007132,"cacheCreationInputTokens":543455,"webSearchRequests":0,"costUSD":6.185411850000003,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"api_error","fast_mode_state":"off","origin":{"kind":"task-notification"},"uuid":"d4415c43-1a0b-45dd-b43f-57441b1ce3c7"}
{"type":"result","subtype":"success","is_error":true,"api_error_status":403,"duration_ms":1624,"duration_api_ms":1025488,"num_turns":1,"result":"Failed to authenticate. API Error: 403 Maximum AI credits exceeded (1030.901975 / 1000).","stop_reason":"stop_sequence","session_id":"60c6e1e9-0ffa-4f9b-b891-f0c140f55c85","total_cost_usd":6.185411850000003,"usage":{"input_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{"claude-sonnet-4.6":{"inputTokens":4112,"outputTokens":55532,"cacheReadInputTokens":11007132,"cacheCreationInputTokens":543455,"webSearchRequests":0,"costUSD":6.185411850000003,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"api_error","fast_mode_state":"off","origin":{"kind":"task-notification"},"uuid":"af83faf0-93a2-407a-b005-95a78b98a393"}
2026-07-22T06:40:14.262Z [ERROR] Error in API request: 403 {"error":{"type":"ai_credits_limit_exceeded","message":"Maximum AI credits exceeded (1030.901975 / 1000).","total_ai_credits":1030.901975,"max_ai_credits":1000,"hard_cap":false}}
2026-07-22T06:40:14.262Z [ERROR] API auth_error: Maximum AI credits exceeded (1030.901975 / 1000).
2026-07-22T06:40:14.266Z [DEBUG] LSP server manager shut down successfully
2026-07-22T06:40:14.267Z [DEBUG] Cleaned up session snapshot: /home/runner/.claude/shell-snapshots/snapshot-bash-1784701922761-otgwmb.sh

Action Required

Assign this issue to an agent to debug and fix the issue.

Optimize token consumption

This failure was triggered by a guardrail limit (max-ai-credits). Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.) to analyze token usage and reduce costs:

Optimize the agentic workflow token consumption using https://raw.githubusercontent.com/github/gh-aw/main/optimize.md

The workflow run is at https://github.com/github/gh-aw/actions/runs/29896892294
Debug with any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/github/gh-aw/actions/runs/29896892294
Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.

Tip

Stop reporting this workflow as a failure

To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:

safe-outputs:
  report-failure-as-issue: false

Generated from Daily VulnHunter Scan · 1K AIC ·

  • expires on Jul 22, 2026, 6:44 PM UTC

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions