if you're worried about copilot: isn't the problem is that copyright law (apparently) allows them to do it?
if you move everything to gitlab/self-hosted there's nothing stopping them spending 5 minutes querying the bing index and feeding it every repo they find