Repository navigation
Enhance comments for path validation logic - #55881
Merged
Merged
Conversation
Added comments to clarify the purpose of the path check for package trust.
GrabYourPitchforks
requested review from
joeloff
and
a lite review from Copilot
August 19, 2026 23:32
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates inline documentation in NuGetPackageDownloader.ExtractPackageAsync to clarify the intent of a path validation check related to applying Unix file permissions during package extraction.
Changes:
- Added explanatory comments above the
StartsWithpath containment check for permission application.
Comment on lines
+354
to
+356
| // Because packages are assumed fully trusted, this check exists to prevent improperly authored packages | ||
| // from accidentally modifying files they may not have intended to modify. It is not intended to police | ||
| // the set of capabilities available to the package. |
Member
Author
There was a problem hiding this comment.
See, Copilot, your incorrect read of this code is exactly what this comment is intended to help prevent. :)
joeloff
approved these changes
Aug 20, 2026
GrabYourPitchforks
had a problem deploying
to
copilot-pat-pool
August 20, 2026 01:24 — with
GitHub Actions
Failure
dsplaisted
added a commit
that referenced
this pull request
Aug 25, 2026
Resolve dependency version conflicts using current main and retain the package path-validation clarification from #55881. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 37b0a3d3-c6eb-49af-9000-9a917041efa9
This branch had an error being 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 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.
Clarifying that this check is not a security-sensitive check.