I have installed and used github copilot for some time. And while working on a google maps project, I was curious and asked it to autocomplete the API url with the key open, and it listed suggestions with various API keys included. This got me worried since it generates codes based on other people code on github.
At first I was thinking those could be not functional keys, But I found that to be wrong based on this article.
So, how what methods can I use to protect my keys from such happening? I am thinking uninstalling wont help since my repos are already at github.