tools: ensure the PR was not pushed before merging
When using Squash and Merge feature, it would allow to a malicious actor to push unreviewed code to their PR while the CQ is running and bypass the usual checks. This commit adds a check to refuse to land if the head of the PR branch is different from the one validated by ncu. PR-URL: https://github.com/nodejs/node/pull/40747 Reviewed-By:Michaël Zasso <targos@protonmail.com> Reviewed-By:
Tobias Nießen <tniessen@tnie.de> Reviewed-By:
Voltrex <mohammadkeyvanzade94@gmail.com>
parent
549a4c91
Please register or sign in to comment