supabase / setup-cli

A GitHub action for interacting with your Supabase projects using the CLI.
MIT License
107 stars 15 forks source link

Unable to access postgres DB when using `setup-cli`- what's the password? #271

Open jason-curtis opened 5 months ago

jason-curtis commented 5 months ago

Bug report

Describe the bug

Can't authenticate against the db that setup-cli creates. Can't figure out how to obtain/set the correct password.

To Reproduce

The following GitHub Action config fails with error FATAL: password authentication failed for user "postgres" (example log).

The action attempts to set up the correct password in 2 ways:

I've also attempted to connect using prisma, but no luck.

Expected behavior

I can interact with the DB using prisma or psql

Screenshots

image

System information

sweatybridge commented 5 months ago

The local development container password is hardcoded as postgres for simplicity. Do you need to change it?

jason-curtis commented 5 months ago

No, I don’t need to change it! It’s sufficient to just know that the password is ‘postgres’ I suppose.

would you accept a pull request with documentation that specifies the hardcoded password (and unusual port, 54322)? Maybe as an additional advanced example in the README.