Repository navigation
Fix leak-fixer evidence filtering before bot trust evaluation - #39457
Merged
Merged
Conversation
Avoid MCP field projection before integrity filtering and fail closed on incomplete workflow evidence. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: aa3864d1-3642-4dd3-a02b-90c0ed19eb6d
kubaflo
temporarily deployed
to
copilot-pat-pool
October 19, 2026 10:44 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39457Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39457" |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
temporarily deployed
to
copilot-pat-pool
October 19, 2026 10:44 — with
GitHub Actions
Inactive
Contributor
Author
|
@dalexsoto stamp |
kubaflo
temporarily deployed
to
copilot-pat-pool
October 19, 2026 10:45 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 19, 2026 10:47 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 19, 2026 10:48 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 19, 2026 10:49 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
No confirmed defects were identified, but hosted integrity-guard behavior remains unverified and requires human validation.
No open issues 🎉
What changed in this PR
Updates Memory Leak Fixer’s evidence-reading instructions to preserve metadata needed for bot trust evaluation, addressing #39447 without weakening integrity controls.
Changes:
- Requires unprojected MCP issue/PR responses and workflow-scoped queries.
- Stops publication when evidence is filtered or queries fail.
- Refreshes the generated lock’s prompt-body hash only.
| File | Description |
|---|---|
.github/workflows/leak-fixer.md |
Adds metadata-preservation and blocked-evidence handling instructions. |
.github/workflows/leak-fixer.lock.yml |
Updates the prompt-body hash; preserves existing pins. |
Review effort: Balanced
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Preserve the identity metadata required by Memory Leak Fixer's GitHub integrity guard.
The reported run already loaded
min-integrity: approvedandtrusted-users: ["github-actions[bot]"], including the trust correction from #39332. However, its MCPlist_issuesandsearch_issuescalls requested projectedfieldswithoutuserorauthor_association. Field selection happens before guard evaluation, so the guard could not recognize the scanner's trusted bot identity. Issue #37848 was consequently filtered atunapprovedintegrity.The workflow now explicitly requires all MCP issue/PR list and search calls to omit
fields, retain the original metadata through the guard, and reduce only permitted results locally. This covers review-response discovery, leak selection, deduplication, and attempt caps. Queries must scope to workflow candidates, and filtered/failed evidence must stop publication rather than look like an empty or complete inventory.Approved integrity, bot trust, permissions, firewall, threat detection, safe-output restrictions, and all action/container/model pins remain unchanged. The regenerated lock changes only the prompt body hash. The fix does not permit raw-REST retries, alternate-tool access to withheld content, or a lower integrity threshold.
Validation:
gh aw compile leak-fixer --strict --shellcheck --no-check-update --json- passed with no errors or warnings; retained the original action/container pins using the local compiler pin cache and restored that cache afterward.gh aw compile leak-fixer --strict --staged --no-emit --no-check-update --json- passed with no errors or warnings.git diff --check- passed.actionlint -format '{{json .}}' .github/workflows/leak-fixer.lock.yml- reports the same four diagnostics as the untouched base (two unsupported generatedconcurrency.queuekeys, existing SC2129 style advice, and an existinggithub.awimport expression). No new diagnostics.No pipeline tests were added.
--dry-runis unavailable in the pinned gh-aw v0.86.2 compiler; the commands above are configuration checks, not a live dry-run. No agent workflow was dispatched, and hosted recovery remains unverified until the revised workflow runs.Issues Fixed
Fixes #39447