Don't store sensitive data in git, or don't store sensitive data on public github repos?
Store credentials in environment variables.
If the organization is "closed" by default, i.e. it only rarely releases code to the public, this may not matter as much.