Re:Ask HN: AI-generated spam pull requests?
by georgel on Wednesday March 29, 2023 @11:32AM
(#35358721)
Don't other projects have automated tests that check that the PR will actually compile/work? And if the tests fail, the PR is rejected.
[ Parent
| on HN ]
Re:Ask HN: AI-generated spam pull requests?
by styren on Wednesday March 29, 2023 @11:35AM
(#35358757)
Yes? That doesn't make this discovery any less interesting/peculiar.
Re:Ask HN: AI-generated spam pull requests?
by sudo_navendu on Wednesday March 29, 2023 @12:21PM
(#35359431)
Actually, we were sure that it was spam. GitHub gives the option to "approve workflow run for first-time contributors". I guess none of the maintainers thought to approve it because they thought it might be spam. Still, a lot of time and effort spent to review it.
Re:Ask HN: AI-generated spam pull requests?
by ynik on Wednesday March 29, 2023 @01:16PM
(#35360222)
That button was added to GitHub to protect against new bot accounts creating PRs against random projects, adding a CI step that runs a cryptominer.
Now that the CI doesn't run automatically for new users without a button click, these attackers have a much harder time.
So tell your maintainers to use that button more liberally -- it mostly just exists to save GitHub money / discourage these attacks. It doesn't hurt to click it for these "CV improvement" spam PRs, and it makes rejecting the PR a lot simpler if there's a red X.
I usually just scan file list changed by the PR, and if it isn't changing CI stuff, I just let the actions run prior to the actual code review.