Skip to content

Commit

Permalink
auth issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-bandihareesh committed Oct 7, 2024
1 parent a4786a7 commit 62ee27c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/database-goodies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ jobs:
sudo apt-get update
sudo apt-get install -y postgresql-14 postgresql-contrib
- name: Configure PostgreSQL for md5 authentication
- name: Configure PostgreSQL for trust authentication
run: |
sudo sed -i "s/peer/md5/" /etc/postgresql/14/main/pg_hba.conf
sudo sed -i "s/scram-sha-256/md5/" /etc/postgresql/14/main/pg_hba.conf
sudo sed -i "s/peer/trust/" /etc/postgresql/14/main/pg_hba.conf
sudo sed -i "s/scram-sha-256/trust/" /etc/postgresql/14/main/pg_hba.conf
sudo service postgresql restart
- name: Set up PostgreSQL
run: |
sudo service postgresql start
sudo -u postgres psql -c "create user test with password 'test';"
sudo -u postgres psql -c "create user test;"
sudo -u postgres psql -c "create database test owner test;"
- name: Run tests
Expand Down

0 comments on commit 62ee27c

Please sign in to comment.