r/coolgithubprojects • u/divin-d1 • 2d ago
Free GitHub Action that undoes PolinRider's amend + force-push and opens cleaning PRs
github.comPolinRider rewrites your last commit and force-pushes it under your own name, using tokens saved on an infected machine. It got into about 70 branches across my 66 repos, so I built a GitHub Action to undo it:
- Infected push → the branch goes back to the commit before the push.
- Branch already infected → a cleaning pull request; the rest of the work is kept.
- Report names the account that really pushed (
sender.login, not the faked author). - Unauthorised push to
main→ held on a side branch. - Sweep for a whole account or org, including private repos and non-default branches, which GitHub search misses.
- Includes importable ruleset JSON files that block force pushes on
mainand moving release tags (free on public repos).
Dry-run setup takes about 5 minutes and changes nothing: https://github.com/divin-d1/polinrider-bot-guard
I'm the author. It's open source, MIT, no dependencies. False-alarm reports are very welcome.



