I have always wondered if putting confidential info in even private git repo was a good idea, although it seems to be a common practice? I feel like that question has been answered, for me anyway.
- it's stored locally (so any developer machine access could compromise secrets)
- it's stored on the build/CI machines (that might run untrusted code in the form of dependencies--possibly from unrelated repos)
- it can end up in build artifacts