Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Rerun real SQL2022 approved-view UI with parent-page discoverability and default-deny test
davoodmehraban89 committed
Oct 21, 2026 at 09:08 UTC
367ee5e2e2289048a3254295e89859faabc9e394
1 file changed
+6
-1
.github/workflows/v6-sql-real-engine-ui-guarded-once.yml
+6
-1
@@ -31,7 +31,7 @@ jobs:
31
gh api 'repos/davoodmehraban89/TreasuryFlow-Validation-Private/contents/qa/patches/v6-add-readonly-sqlserver-adapter.mjs?ref=cfb45189494e0cb7cfe04b3f1c3b9c1948c8cef0' --jq .content 2>/dev/null | base64 -d > "$RUNNER_TEMP/v6-private-sql-additive-patch.mjs"
32
test -s "$RUNNER_TEMP/v6-private-sql-additive-patch.mjs"
33
echo "TF_SQL_PATCH=$RUNNER_TEMP/v6-private-sql-additive-patch.mjs" >> "$GITHUB_ENV"
34
- gh api 'repos/davoodmehraban89/TreasuryFlow-Validation-Private/contents/qa/patches/v6-add-synthetic-sql-lab-ui.mjs?ref=4a92c1cc835714a7204f4b48b7524dec11beee8d' --jq .content 2>/dev/null | base64 -d > "$RUNNER_TEMP/v6-sql-lab-ui-patch.mjs"
34
+ gh api 'repos/davoodmehraban89/TreasuryFlow-Validation-Private/contents/qa/patches/v6-add-synthetic-sql-lab-ui.mjs?ref=e22a33379d07089a4f00b956010c7f316be2f806' --jq .content 2>/dev/null | base64 -d > "$RUNNER_TEMP/v6-sql-lab-ui-patch.mjs"
35
test -s "$RUNNER_TEMP/v6-sql-lab-ui-patch.mjs"
36
echo "TF_SQL_UI_PATCH=$RUNNER_TEMP/v6-sql-lab-ui-patch.mjs" >> "$GITHUB_ENV"
37
echo 'GATE_PASS_PINNED_V6_SOURCE_SHA256'
@@ -202,6 +202,11 @@ jobs:
202
const html=await r.text();
203
assert(html.includes(marker),'NEXT_SQL_LAB_MARKER_MISSING');
204
for(const word of forbidden)assert(!html.includes(word),'SQL_LAB_FAIL_CLOSED_LEAK');
205
+ const parent=await fetch(url+'/integrations',{signal:AbortSignal.timeout(15000)});
206
+ assert.equal(parent.status,200,'SQL_LAB_PARENT_INTEGRATIONS_STATUS');
207
+ const landing=await parent.text();
208
+ assert(landing.includes('href="/integrations/sql-lab"'),'SQL_LAB_NAV_LINK_MISSING');
209
+
210
return html;
211
}finally{child.kill();await pause(600)}
212
}