Řešení je velmi snadné. Github může dát do podmínek užití, že má práva na scanování a užití kódu v Copilot. Případně to může být opt-in na použití Copilot.
Zajímalo by mě zda Copilot scanuje licence a používá jenom licence jako MIT a třeba Apache nebo GPL Eula atp. zcela ignoruje. Pokud to nedělá, tak z mého pohledu ty licence jednoznačně porušuje.
Na čtení kódu nepotřebujete žádnou licenci – není to užití autorského díla.
Je dost možné, že samotné podmínky užití Github by s tím nesouhlasily a i to smrštění na "užití" by mohlo být zavádějící
E. Private Repositories
Short version: We treat the content of private repositories as confidential, and we only access it as described in our Privacy Statement—for security purposes, to assist the repository owner with a support matter, to maintain the integrity of the Service, to comply with our legal obligations, if we have reason to believe the contents are in violation of the law, or with your consent.
https://docs.github.com/en/site-policy/github-terms/github-terms-of-service#e-private-repositories