News for hackers. Stuff that matters.
Re:GitHub Actions update: Helping maintainers combat bad actors by remram on Thursday April 22, 2021 @07:39PM (#26909447)
> One of these is pull requests from forks being used by bad actors to run mining code on upstream repositories. This obviously has a negative impact on repository owners whose legitimate pull requests and accounts may be blocked as a result of this activity.

It's really not obvious to me why you'd ever punish one account/repository for the actions of another account in another repository...

> pull requests from first-time contributors will require manual approval

So GitHub is... forcing maintainers to fight the abuse of GitHub's own resources by third parties... or else they will ban the maintainers? What is this?

Re:GitHub Actions update: Helping maintainers combat bad actors by ncallaway on Thursday April 22, 2021 @09:26PM (#26910091)
> It's really not obvious to me why you'd ever punish one account/repository for the actions of another account in another repository...

Well, from the blog post, that's one of the changes they outlined:

> Specifically, if we determine an Actions run to be abusive or against our terms, our enforcement will be directed at the account hosting the fork and not the account associated with the upstream repository

My guess is the reputation was a naive initial implementation, designed to prevent against someone opening a Github account, creating a mining action and running it. They probably just didn't consider these scenarios carefully when first applying reputation to pull requests, and this blog posts is them fixing it.

Re:GitHub Actions update: Helping maintainers combat bad actors by saddlerustle on Friday April 23, 2021 @12:53AM (#26911085)
It's really for their benefit rather than maintainers. The actions abuse was apparently a major capacity issue.
Re:GitHub Actions update: Helping maintainers combat bad actors by simtel20 on Thursday April 22, 2021 @09:09PM (#26909980)
I think you are reading "blocked" as in "account suspended", while I think the article means that other users' jobs are blocked - meaning waiting - as the mining code is running instead of completing in a short time as you'd normally expect.
Re:GitHub Actions update: Helping maintainers combat bad actors by remram on Thursday April 22, 2021 @09:16PM (#26910032)
"accounts may be blocked"... if they mean "CI may wait in queue" then it was a very poor choice of words
Re:GitHub Actions update: Helping maintainers combat bad actors by akerl_ on Thursday April 22, 2021 @09:22PM (#26910071)
> This obviously has a negative impact on repository owners whose legitimate pull requests and accounts may be blocked as a result of this activity.

They’re saying that the malicious actions block builds for legit users.

Re:GitHub Actions update: Helping maintainers combat bad actors by remram on Thursday April 22, 2021 @10:16PM (#26910354)
Yes simtel20 just said that. Hopefully it is what they meant.

Either way I am now responsible for protecting GitHub's CI resources and I don't particularly like it; I'll do it if I must (after all GitHub is generously providing them for free) but I think the post's title is a bit dishonest.

Re:GitHub Actions update: Helping maintainers combat bad actors by akerl_ on Thursday April 22, 2021 @10:47PM (#26910508)
It’s not really in dispute that it’s what they mean. And thus, you aren’t responsible for protecting GitHub’s infra; they’re providing new options for ensuring your own Actions setup isn’t subverted for somebody to mine crypto without your consent.
Re:GitHub Actions update: Helping maintainers combat bad actors by remram on Thursday April 22, 2021 @11:57PM (#26910837)
My objection is simple: I have to protect my CI queue simply because GitHub chose to count PRs from third party against my project's queue. If they simply counted them against the PR author's quota, this abuse wouldn't be happening in the first place. People would run them in discreet repos as they would gain nothing from forking or opening PRs.

Now instead of counting this CI usage in a way more favorable to project maintainers, they give us a way to manually approve runs before they use our CI. That's good, but still a solution to an artificial problem. I think I would have welcomed more openness about why this way of accounting is necessary, instead of this extra work put on me and labeled as a "help" that I never thought I needed.

Re:GitHub Actions update: Helping maintainers combat bad actors by hashhar on Friday April 23, 2021 @12:43AM (#26911055)
Running CI on their repo doesn't work when you use self-hosted runners.

Same for when you have secrets defined in the workflow that are necessary for a build.

There are more cases to cover than the ones visible during a knee-jerk reaction.

Re:GitHub Actions update: Helping maintainers combat bad actors by remram on Friday April 23, 2021 @10:39AM (#26915205)
Obviously I don't consider self-hosted runners to be "GitHub's resources". However those are not widely used by open-source projects and are not mentioned in the blog post, so I don't think that's what the concern is about. I don't think ignoring this minor use-case makes this a "knee-jerk reaction", but name-calling is always appreciated...

I don't see how secrets help with mining cryptocurrency either.

Thanks for your comment I guess?

Re:GitHub Actions update: Helping maintainers combat bad actors by qbasic_forever on Thursday April 22, 2021 @09:52PM (#26910228)
Ooph, yeah I can see this turning into a big headache for large community repos. People are going to submit a first pull and then start opening issues like "Why hasn't pull request #123 been approved yet?, "Please approve my pull #456", etc. within minutes and hours.
Re:GitHub Actions update: Helping maintainers combat bad actors by tmp538394722 on Thursday April 22, 2021 @11:29PM (#26910698)
...maaaayyyyybe.

But on the other hand, it makes it less likely that crypto miners will bother opening up junk PRs against your repo. So you save some time there.

Re:GitHub Actions update: Helping maintainers combat bad actors by aseipp on Friday April 23, 2021 @03:28PM (#26918263)
People already do that regardless of this new feature.