Conversation
…t workflow Agent-Logs-Url: https://github.com/github/gh-aw/sessions/2d52784d-f27d-4c1a-84bb-8ac5991fa577 Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add protected-files: fallback-to-issue to prevent safe_outputs job failure
fix(github-mcp-tools-report): add protected-files: fallback-to-issue to prevent safe_outputs hard failure
Apr 26, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the github-mcp-tools-report workflow’s Safe Outputs configuration to avoid hard failures when a protected file is touched, falling back to creating an issue with the patch instead.
Changes:
- Add
protected-files: fallback-to-issueto thesafe-outputs.create-pull-requestfrontmatter in the workflow source. - Recompile the workflow lockfile so the generated Safe Outputs JSON includes
"protected_files_policy":"fallback-to-issue".
Show a summary per file
| File | Description |
|---|---|
.github/workflows/github-mcp-tools-report.md |
Adds protected-files: fallback-to-issue to Safe Outputs PR creation config. |
.github/workflows/github-mcp-tools-report.lock.yml |
Regenerated compiled workflow to emit protected_files_policy: fallback-to-issue in Safe Outputs config/handler env. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
Closed
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
github-mcp-tools-reportworkflow was hard-failing insafe_outputswhenever the agent's patch touched.github/aw/github-mcp-server.md(a protected file), wasting ~$1.64 in inference per blocked run.Changes
github-mcp-tools-report.md— addsprotected-files: fallback-to-issueto thesafe-outputs.create-pull-requestfrontmatter block so the system creates a review issue with the patch attached instead of erroring outgithub-mcp-tools-report.lock.yml— recompiled; now emits"protected_files_policy":"fallback-to-issue"in the safe outputs config