Deploying using private github repository

I have an app I want to deploy on the cloud however, I have a challenge since it uses several API keys which I wouldn’t want to display publicly.

Any work around on this? can I deploy the app using a private repo or any other method provided the API keys won’t be public?

Don’t commit keys to a repository, private or not.

Use Streamlit’s secret management : Secrets management - Streamlit Docs. You will need to modify your code accordingly to read the API keys from the secrets vault.