Skip to content

Fix Code Scanning Fixer tool denials - #53038

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-fix-code-scanning-fixer
Aug 16, 2026
Merged

Fix Code Scanning Fixer tool denials#53038
pelikhan merged 2 commits into
mainfrom
copilot/aw-fix-code-scanning-fixer

Conversation

Copilot AI commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

The Code Scanning Fixer workflow stopped early after hitting the Copilot SDK tool-denial guardrail. The run attempted routine local inspection commands that were not allowed by the workflow’s shell allowlist.

  • Tool allowlist

    • Allows the observed local inspection commands that caused denials:
      bash: ["git diff:*", "git restore:*", "git status:*", "sed:*", wc]
  • Prompt guidance

    • Clarifies that local temporary-file reads should use allowed shell readers such as cat, head, or sed, not the Copilot read tool.
  • Repository targeting

    • Replaces hard-coded githubnext/gh-aw API examples with the current workflow repository:
      gh api "repos/${{ github.repository }}/code-scanning/alerts?state=open&per_page=100"

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning fixer exceeded tool denial limit Fix Code Scanning Fixer tool denials Aug 16, 2026
Copilot AI requested a review from pelikhan August 16, 2026 04:45
@pelikhan
pelikhan marked this pull request as ready for review August 16, 2026 04:45
Copilot AI balanced review requested due to automatic review settings August 16, 2026 04:45
@pelikhan
pelikhan merged commit 4022743 into main Aug 16, 2026
@pelikhan
pelikhan deleted the copilot/aw-fix-code-scanning-fixer branch August 16, 2026 04:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Code Scanning Fixer guardrail failures by aligning its tool policy and prompt with routine inspection needs.

Changes:

  • Allows git status and sed inspection commands.
  • Uses the active repository in Code Scanning API calls.
  • Directs temporary-file reads through allowed shell tools.
Show a summary per file
File Description
.github/workflows/code-scanning-fixer.md Updates tool permissions and prompt guidance.
.github/workflows/code-scanning-fixer.lock.yml Regenerates the compiled workflow.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.1

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Code Scanning Fixer exceeded tool denial limit

3 participants