Repository navigation
fix(ng-dev/pr): reject node_modules paths and pin fetched head SHAs - #4126
Merged
alan-agius4 merged 1 commit intoNov 24, 2026
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces security checks to prevent pull requests from introducing malicious files under node_modules/ and ensures fetched head SHAs match expected metadata across checkout, takeover, rebase, conflict discovery, and merge operations. The review feedback highlights critical improvements to prevent false positives and failures in shallow clones, specifically suggesting the use of --diff-filter=d to allow deletion of forbidden files and adding --deepen=500 to git fetches during conflict discovery.
josephperrott
force-pushed
the
fix/ng-dev-pr-commit-and-tree-guards
branch
2 times, most recently
from
November 23, 2026 22:59
6395d6a to
ea628e3
Compare
alan-agius4
approved these changes
Nov 24, 2026
Validate pull request commit ranges across merge, checkout, rebase, and conflict discovery commands to reject paths inside node_modules/ before checking out or replaying commits, verify fetched head SHAs match queried pull request metadata, and handle shallow clones and orphan branches gracefully.
josephperrott
force-pushed
the
fix/ng-dev-pr-commit-and-tree-guards
branch
from
November 24, 2026 15:19
ea628e3 to
7f9f5a2
Compare
Contributor
|
This PR was merged into the repository. The changes were merged into the following branches:
|
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.
Validate pull request commit ranges across merge, checkout, rebase, and conflict-discovery commands to reject paths inside node_modules/ before checking out or replaying commits, verify fetched head SHAs match queried pull request metadata, and handle shallow clones and orphan branches gracefully.