Felix Reda, the pirate in the european parliament, argues that Github Copilot is not infringing your copyright because text and data mining is not copyright infrigement and machine-generated code is not a derivative work.
He explains on simple terms the current legal status on these issues, while also arguing that copyleft does not benefit from an extension of copyright to actions that are not currently covered by copyright.