News for hackers. Stuff that matters.
Re:GitHub “allows” unauthorized users “merging” PRs, bypass ... by rsstack on Thursday August 25, 2022 @03:21PM (#32598673)
GitHub automatically marks a PR as merged if its HEAD commit hash matches the BASE commit hash. Usually it happens when the PR code goes into the main branch, but it can also happen if the PR branch is forcibly reset to match the main branch. The bug here is that it closes the discussion prematurely (a discussion on a zero diff, at that specific moment in time). There's no unauthorized source code modification, as you noted. Awkward but meh.

There are no comments on this comment yet.