Earlier quoted context omitted.
Because others are answering you in much more detail, I’ll give them more generalized answer – This is quite simply not how a sanctions regime works. The US government does not make a list of all the sanctioned persons’ assets, then start going after those in court. Instead, it goes the other way: any company with a US nexus watches those sanction lists carefully. When someone is listed they look at their internal re…
Be that as it may, isn't this still an unacceptable collateral damage? So when you contribute code to an open source project, you generally do so under an open source license. All of them generally contain something akin to the following: IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (this particular excerpt is from the BSD li…
But, you can’t just put anything in one of these agreements; the law overrides anything you might state in a contract.
Furthermore, software licenses govern the use of your code by other people. It doesn’t govern your use of the GitHub service.
Your use of GitHub is governed by the GitHub ToS. Under that agreement, they can terminate service for any reason they want. They can cancel your account if they wake up grumpy on a Tuesday and just feel like it. Or, they can terminate service because they don’t want to touch anything that might be sanctioned with a 10 foot pole.