The problem with the class action lawsuit against GitHub is this: if you host your code on GitHub, it doesn't matter what license you use. Microsoft can do whatever they want with it. You agreed to this by agreeing to their terms and conditions.
The end user agreement also says you must have the authority to grant these epic rights to GitHub, i.e. you cannot upload someone else's code. They could probably absolve themselves from responsibility due to your having committed wire fraud in this case. But, alas, IANAL.
If I have access to the source of a BSD, MIT, or GPL project - is there anything in those licenses that would prevent me from mirroring it on GitHub or GitLab?