Earlier quoted context omitted.
> If you are putting up code on GitHub to which you don’t have all the rights you’re actually in violation of their TOS and you are violating the rights of other copyright holders. 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…
> FOSS licenses by definition permit redistribution 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...