I can't find where in the TOS it says that you must "have all the rights [to the code]". It just says that you must not violate copyright nor other laws.[1] FOSS licenses by definition permit redistribution, so uploading to GitHub seems to be in-line with the license granted by the copyright holders.
What are the violations you mention?
> Contributors who add to existing GitHub projects are providing the same license to GitHub as the project maintainer though per the TOS.
Sure, but that's not the only way. If you contribute to a FOSS project elsewhere, those changes go under the same license of the project. Whoever you pass those changes to has liberty to redistribute per the terms of the license. The TOS is unneeded to legally redistribute FOSS-licensed projects with GitHub.
The TOS saying that you must grant GitHub these permissions is only to protect GitHub in cases where people upload projects without licenses.
[1] in addition to content restrictions, like no porn.
Uploading to GitHub is not just redistribution, it’s relicensing. Whether that is permitted depends on the license.
> If you upload Content that already comes with a license granting GitHub the permissions we need to run our Service, no additional license is required.
[1] https://docs.github.com/en/github/site-policy/github-terms-o...
Is it that widely scoped? Can't we narrow it to "A third party who finds their GPL code on Github but has not uploaded that specific code to Github themselves has a right of action limited to that specific code."
Just because I created a github account once and agreed to the TOS doesn't mean that I agree to let others upload my code to github, where would that scope end. Could someone steal code off my computer which i've never published and put it on Github and that was OK because I once signed up for a github account, clearly a contrived example but.
And here is exactly the problem.
GitHub seems to be copying copyrighted code left and right and pretend they made it!
No attribution, no license.
They are of course allowed to let their AI study the code, but as "employer" of that AI GitHub/Microsoft has a responsibility if that AI breaks copyright right and left and they as a company pretend the code is theirs to give away.
So if the user uploads the source to GitHub, they agree to the terms (which they may not actually have the rights to) but that isn't equivalent to the rights owner giving GitHub the rights to distribute the source under a different license.
The TOS can only modify those distribution terms (if it even can be found to be legally binding) if the user uploading the source is the rights owner which in so many cases is not the case.
Beyond that, that's what DMCA takedown requests are for. Github would only be an accomplice in that case, if they got a legitimate DMCA takedown request and chose to completely ignore it.
The ONLY available terms are those given by the license, surely?