Fix Code Scanning Fixer tool denials - #53038
Merged
Merged
Conversation
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
pelikhan
marked this pull request as ready for review
August 16, 2026 04:45
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes Code Scanning Fixer guardrail failures by aligning its tool policy and prompt with routine inspection needs.
Changes:
- Allows
git statusandsedinspection 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
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Prompt guidance
cat,head, orsed, not the Copilotreadtool.Repository targeting
githubnext/gh-awAPI examples with the current workflow repository:gh api "repos/${{ github.repository }}/code-scanning/alerts?state=open&per_page=100"