Undefined username and password from config/config.js but .github/workflows/deploy.yml sequelize config is retrieving from GitHub repo secrets
I could not get the database username and password passed to the config/config.js from .github/workflows/deploy.yml. When I pushed the codes to the GitHub. The GitHub Actions automate the deployment and ran the sequelize commands which turned out to be successful as it was getting all the secrets such as username, password, database name, and host. When I tried to have these confidential variables passed to config/config.js, the DB_NAME and DB_HOST are working but DB_USERNAME and DB_PASSWORD appeared to be undefined. I have found out about this issues when I was looking at the console log from the AWS CloudWatch because there was an error when the user is creating an account. Post confirmation basically checks the user and assign the role based on their email domain. This process requires an access to the Postgres database.