سامانه صدور فاکتور و حسابداری

ci(wp2): run restricted JWT approval-boundary expected-RED probe

davoodmehraban89 committed Nov 22, 2026 at 13:33 UTC fb7f15e1ca7ad5f20ad93023286c3ed2ef8265f4
1 file changed +11
.github/workflows/free-supabase-local-e2e.yml
+11
@@ -15,6 +15,7 @@ on:
15 - "scripts/wp3-financial-tenant-e2e.mjs"
16 - "scripts/wp2-authorized-journal-write-e2e.mjs"
17 - "scripts/wp2-source-autopost-jwt-e2e.mjs"
18 + - "scripts/wp2-source-approval-boundary-jwt-e2e.mjs"
19 - ".github/workflows/free-supabase-local-e2e.yml"
20 - "supabase/config.toml"
21 workflow_dispatch:
@@ -85,6 +86,16 @@ jobs:
86 set +a
87 node scripts/wp2-source-autopost-jwt-e2e.mjs
88
89 + # This is EXPECTED PRODUCT RED: the old source autopost accepts create without
90 + # distinct accounting approve. A green WP2 job proves reproduction ONLY.
91 + - name: Reproduce Issue229 missing independent approval with real non-owner JWT
92 + run: |
93 + set -euo pipefail
94 + set -a
95 + . /tmp/supabase-local.env
96 + set +a
97 + node scripts/wp2-source-approval-boundary-jwt-e2e.mjs
98 +
99 - name: Verify WP1/WP2 journal RPC surface exists
100 run: |
101 set -a