So not to go all Godwin, but take an
extreme example...
Do you think a company in 1930s Germany should have ethically refused to provide software that was used in concentration camps? [In fact, there was a bit of "IT" then, used for such, but it was provided by IBM. But to make the analogy closer, let's imagine a hypothetically Germany company].
("Companies" don't do anything by themselves, so I guess the question is if the decision-makers in such a company should refuse to sell software to the German government for such purposes, and if the employees should try to pressure the decision-makers to).
If we agree that in that case the ethical choice is to refuse to supply the software, and that it would in fact be unethical to sell software for such a purpose...
Then we already agree that there is some case where a company should refuse to provide services for 'political' reasons, even to a government agency of the country it's located in.
So it's no longer a question of if a company should ever be "expected"to do this -- but if they should in this case, if this particular scenario is such an example. People can disagree on that, can think that obviously this is unlike the Nazi example, that this example does not rise to that level. I'm not trying to insist that this is definitely a "Nazi-like" example.
But once we agree there is at least one such case, it's not a categorical dispute about whether business decisions should be "politisized" ever -- it's a debate about the particular ethics of the specific situation we (or github) finds themselves in, if this example is one that requires us to ethically refuse cooperation or not. Very particularly. I think that is a fine debate to have. I think the debate about whether a company should ever do this sort of thing is not so much, because really we should all be able agree there are some lines that should not be crossed there, there are some cases where, yes, a company should be expected to refuse service to it's own government, once we examine the historical examples that are obviously beyond the lines.