Skip to content

[aw] Code Scanning Fixer exceeded tool denial limit #53005

Description

@github-actions

Workflow Failure

Workflow: Code Scanning Fixer
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/31919288964

Warning

Excessive Tool Denials: The Copilot SDK hit the max tool denial guardrail and stopped the session early (3/3).

Last denied request
shell(git status --short
git diff --stat)
Last 5 tool calls
  • bash(cd /home/runner/work/gh-aw/gh-aw && wc -l scripts/ensure-docs-slide-pdf.js; ls -la scripts/ensure-docs-slide-pdf.js)
  • view
  • bash(cd /home/runner/work/gh-aw/gh-aw && git log --oneline -1; git log --oneline -1 19e875b8b03b9540159c8f8549954a86ab6c24...)
  • bash(cd /home/runner/work/gh-aw/gh-aw && grep -n "lgtm" scripts/ensure-docs-slide-pdf.js git log --oneline --all | grep -i...)
  • bash(cd /home/runner/work/gh-aw/gh-aw && git status --short git diff --stat)

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(git status --short
git diff --stat)

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/31919288964
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/31919288964
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 Code Scanning Fixer · 32.3 AIC ·

  • expires on Aug 16, 2026, 1:45 PM UTC

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions