Skip to content

Commit

Permalink
fix grant permissions to public schema
Browse files Browse the repository at this point in the history
fix grant permissions to public schema
  • Loading branch information
tsirysndr committed Aug 22, 2024
1 parent 131e0bc commit 29a66f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ jobs:
run: |
fluentci run --wasm postgres start
pkgx psql --host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE s2;'
pkgx psql --host=localhost -d postgres -U `whoami` -c 'CREATE USER postgres CREATEROLE;'
pkgx psql --host=localhost -d postgres -U `whoami` -c 'GRANT ALL PRIVILEGES ON DATABASE s2 TO postgres;'
pkgx psql --host=localhost -d postgres -U `whoami` -c 'GRANT ALL ON SCHEMA public TO postgres;'
pkgx psql --host=localhost -d s2 -U `whoami` -c 'CREATE USER postgres CREATEROLE;'
pkgx psql --host=localhost -d s2 -U `whoami` -c 'GRANT ALL PRIVILEGES ON DATABASE s2 TO postgres;'
pkgx psql --host=localhost -d s2 -U `whoami` -c 'GRANT ALL ON SCHEMA public TO postgres;'
pkgx psql --host=localhost -d s2 -U `whoami` -c 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO postgres;'
pkgx psql --host=localhost -d s2 -U `whoami` -c 'ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO postgres;'
go install gotest.tools/gotestsum@latest
PATH=$HOME/go/bin:$PATH gotestsum --junitfile junit.xml ./...
env:
Expand Down

0 comments on commit 29a66f2

Please sign in to comment.