You'll have to opt-out of GitHub using your repos for AI training here: https://github.com/settings/copilot/features

Ctrl-F for "Allow GitHub to use my data for AI model training"

@AlSweigart I got tired of GitHub. My repos were archived already. I deleted all of them just now.

I seriously doubt there is any switch that would keep them away from train AI on our code. They can fork your code anytime and train the AI on the fork.

GitHub has also no reason to respect the setting, since the users have no way of checking on them.