tools: ensure the PR was not pushed before merging · nodejs/node@a3df50d · GitHub
Skip to content

Commit a3df50d

Browse files
aduh95targos
authored andcommitted
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: #40747 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
1 parent ea968d5 commit a3df50d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/actions/commit-queue.sh

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)