Overview Environment variables are a simple and popular option to avoid hard-coding credentials into your code or build files, while eliminating the risk of accidentally pushing sensitive information to Git. Most importantly, utilizing them in your programs is very easy. Say, you want to retrieve the username and password of your firewall in a Python program. This is all you have to do: import os fw_username = os.getenv('FIREWALL_USER', None) fw_password = os.