Repository navigation
Harden DT PR runs - #1350
Merged
Jake Bailey (jakebailey) merged 3 commits intoOct 20, 2026
Merged
Harden DT PR runs#1350Jake Bailey (jakebailey) merged 3 commits into
Jake Bailey (jakebailey) merged 3 commits into
Conversation
Compiler diagnostics can include third-party Azure command markers even inside JSON strings. Restrict custom task commands and variable setters so those diagnostics cannot acquire general agent authority. Allow only GH_TOKEN from token creation, while retaining trusted tool setup and artifact task capabilities and existing formatter escaping.
Restricted Azure commands still permit successful early task completion. Validate every expected main and PR shard in an independent trusted task before creating posting credentials for successful runs. Share the shard count with the parallel job configuration and revalidate before posting. Require regular files containing failure arrays with string paths and errors, while accepting empty clean shards and preserving diagnostics. Keep validation errors fixed so malformed artifacts cannot inject agent commands through parser or filesystem errors. Preserve failure reports without requiring successful-run artifacts.
Jake Bailey (jakebailey)
enabled auto-merge
October 20, 2026 18:35
Andrew Branch (andrewbranch)
approved these changes
Oct 20, 2026
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.
While we only run tests on trusted PRs, do a bit of work to harden the pipeline against AzDO commands and similar problems.