Github is a private company and they have the right to do that. However, as their customer (I pay them a little every month myself and I also work for a company that pays them a lot), I don't like that behaviour and I would start think about switching to other company's services if they continue to do that.