سامانه صدور فاکتور و حسابداری
test: run database security grant assertions in local Supabase
davoodmehraban89 committed
Nov 17, 2026 at 08:09 UTC
4b75ba69bec1b4aedb7f30c8e9df78a2ef7e86b6
1 file changed
+10
.github/workflows/wp1-ledger.yml
+10
@@ -71,6 +71,16 @@ jobs:
71
run: supabase start -x studio,imgproxy,logflare,vector
72
- name: Apply repository migrations to local database
73
run: supabase db reset
74
+ - name: Run database SECURITY DEFINER and grants assertions
75
+ run: |
76
+ set -euo pipefail
77
+ supabase status -o env > /tmp/supabase-local.env
78
+ set -a
79
+ . /tmp/supabase-local.env
80
+ set +a
81
+ psql "$DB_URL" -v ON_ERROR_STOP=1 -f supabase/tests/wp1_phase1a_security_grants.sql
82
+ psql "$DB_URL" -v ON_ERROR_STOP=1 -f supabase/tests/wp1_phase1a_stage1_all_definer_security.sql
83
+
84
- name: Verify WP1/WP2 journal RPC functions exist
85
run: |
86
set -euo pipefail