سامانه صدور فاکتور و حسابداری
ci(stage3): require local real bearer-JWT sale/purchase RPC posting, replay, tenant negatives
davoodmehraban89 committed
Oct 23, 2026 at 10:57 UTC
a82f241221bc3d522de5286d94dfb71de5c7564a
1 file changed
+10
-1
.github/workflows/stage3-commercial-local-regression.yml
+10
-1
@@ -309,12 +309,21 @@ jobs:
309
set -euo pipefail
310
node scripts/stage3-ui-sql-v1-check.mjs stage3-ui-fixtures.json 2>&1 | tee stage3-ui-sql.log
311
grep -q 'FINORA_STAGE3_UI_SQL_V1_PASS' stage3-ui-sql.log
312
+ - name: REAL JWT owner-approved sale and purchase posting (GoTrue, PostgREST, DB)
313
+ shell: bash
314
+ run: |
315
+ set -euo pipefail
316
+ test -z "${SUPABASE_ACCESS_TOKEN:-}"
317
+ test -z "${SUPABASE_DB_PASSWORD:-}"
318
+ test -z "${SUPABASE_SERVICE_ROLE_KEY:-}"
319
+ node scripts/stage3-jwt-source-post-real-stack.mjs stage3-ui-fixtures.json 2>&1 | tee stage3-source-real-jwt.log
320
+ grep -q 'FINORA_STAGE3_REAL_JWT_SOURCE_POST_PASS' stage3-source-real-jwt.log
321
- name: Record local stage3 synthetic SQL scope
322
if: always()
323
run: |
324
{
325
echo '### Stage3 actual UI to real PostgreSQL contract'
317
- echo 'New form payloads only; local SQL-v1 evaluated on isolated unlinked Supabase/Postgres.'
326
+ echo 'New form payloads only; local SQL-v1 and REAL GoTrue/JWT/PostgREST source-post tested on unlinked local Supabase/Postgres.'
327
echo 'No private user data, no Production Auth, no hosted Staging and NO deployment.'
328
echo 'Failing source contract is a genuine Stage3 BLOCKER, never waive it.'
329
} >> "$GITHUB_STEP_SUMMARY"