You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a structured guardrail event (guard.tool_denials_exceeded) captured in events.jsonl.
How to fix this
The prompt attempted actions outside the workflow's allowed tools.
Update the workflow prompt and/or permissions so required actions are permitted:
The workflow code-scanning-fixer stopped because the Copilot SDK exceeded its tool denial threshold (3/3).
Last denied request:
shell(cat > /tmp/gh-aw/agent/pr.json <<'E'
{"branch":"fix/alloc-size-overflow","title":"[code-scanning-fix] Fix go/allocation-size-overflow: remove overflow-prone capacity hints","body":"# Security Fix: Allocation size overflow\n\n**Alert Numbers**: #942, #943, #944, #945\n**Severity**: High\n**Rule**: go/allocation-size-overflow\n**CWE**: CWE-190\n\n## Location\n- pkg/cli/experiments_command.go:418\n- pkg/workflow/create_code_scanning_alert.go:110\n\n## Fix Applied\nRemoved capacity hints computed by summing `len()` values passed to `make`; slices/maps now grow via append as needed.\n\n## Testing Considerations\nBehavior is unchanged; run existing unit tests for pkg/cli and pkg/workflow.\n\n---\n**Automated by**: Code Scanning Fixer Workflow"}
E
safeoutputs create_pull_request . < /tmp/gh-aw/agent/pr.json)
Please update the workflow so the prompt only uses tools permitted by the workflow tool policy.
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-tool-denials). 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/36801275611
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/36801275611
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.
Workflow Failure
Workflow: Code Scanning Fixer
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/36801275611
Warning
Excessive Tool Denials: The Copilot SDK hit the max tool denial guardrail and stopped the session early (
3/3).Last denied request
Last 5 tool calls
bash(gofmt -l pkg/cli pkg/workflow | head; go build ./pkg/cli ./pkg/workflow && git diff --stat | cat; git diff --binary -...)bash(git diff --binary --no-ext-diff | wc -c)bash(git checkout -b fix/alloc-size-overflow && git commit -qam "Fix go/allocation-size-overflow in size computations Co-a...)safeoutputsbash(cat > /tmp/gh-aw/agent/pr.json <<'E' {"branch":"fix/alloc-size-overflow","title":"[code-scanning-fix] Fix go/allocati...)This is a structured guardrail event (
guard.tool_denials_exceeded) captured inevents.jsonl.How to fix this
The prompt attempted actions outside the workflow's allowed tools.
Update the workflow prompt and/or permissions so required actions are permitted:
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-tool-denials). Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.) to analyze token usage and reduce costs:
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the
agentic-workflowsprompt.agentic-workflowsskill from.github/skills/agentic-workflows/SKILL.mdor https://github.com/github/gh-aw/blob/main/.github/skills/agentic-workflows/SKILL.mddebug the agentic workflow code-scanning-fixer failure in https://github.com/github/gh-aw/actions/runs/36801275611Tip
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set
report-failure-as-issue: falsein its frontmatter: