Here's Kate Downing, an IP lawyer specializing in software license:
> According to Downing, the answer depends to a certain extent on where that code is hosted. If it’s on GitHub, there very clearly would not be copyright infringement.
> “If you look at the GitHub Terms of Service, no matter what license you use, you give GitHub the right to host your code and to use your code to improve their products and features,” Downing says. “So with respect to code that’s already on GitHub, I think the answer to the question of copyright infringement is fairly straightforward.”
Downing cautions that copilot output of large chunks of code complete with comments are more questionable to use, but that for the most part it looks above board.
https://fossa.com/blog/analyzing-legal-implications-github-c...
Here's an English lawyer on the same topic...
> The licence is broadly worded, and I'm confident that there is scope for argument, but if it turns out that Github does not require a licence for its activities then, in respect of the code hosted on Github, I suspect it could make a reasonable case that the mandatory licence grant in its terms covers this as against the uploader.
https://decoded.legal/blog/2021/06/github-copilot-initial-th...