You have the full rights to upload any open source code. The entire point of an open source license is to give others the rights to do what they want with it. Unless the license has a specific exclusion for github or github like services, you definitely have that right.
> This is even true for e.g. MIT licenses as while they are very permissive they still require a form of attributions which Copilot doesn't provide.
those two things have nothing to do with each other. MIT gives me the license to upload. Copilot NOT giving me the license is irrelevant because the generated code isn't distributed under under an opensource license and thus has no relevance to the discussion of MIT or any other Open Source license.
additionally, requiring attribution and having the right to upload it are separate things. A license MAY require attribution and it may not. Rights can be granted without such a thing. See Public Domain, and CC0 for examples.
no, you agree to give certain rights to GitHub when you upload. Rights you do not have with most open source licenses because they do require attribution.
> generated code isn't distributed under under an opensource license
you still have to comply with licenses and if code pilot spits out code which contains nearly verbatim code which was MIT licensed it is not copilot which needs to grant you the license but the original code owner (or you need to at least properly attribute it, through in case of e.g. GPL that is not enough)
but through the act of emitting code via code pilot github does distribute code (without proper attribution) and they do so by getting rights from the uploader to be able to do so. Except that most people uploadig do not have such rights for anything which isn't their code.
> This is even true for e.g. MIT licenses as while they are very permissive they still require a form of attributions which Copilot doesn't provide.
those two things have nothing to do with each other. MIT gives me the license to upload. Copilot NOT giving me the license is irrelevant because the generated code isn't distributed under under an opensource license and thus has no relevance to the discussion of MIT or any other Open Source license.
additionally, requiring attribution and having the right to upload it are separate things. A license MAY require attribution and it may not. Rights can be granted without such a thing. See Public Domain, and CC0 for examples.