Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

Probe Excel V6 UI wiring through ephemeral Windows runner without exporting private source

davoodmehraban89 committed Oct 19, 2026 at 18:57 UTC fd0003cf8d7a545c511ca667130dfd837291f236
1 file changed +57
.github/workflows/v6-excel-ui-contract-probe-once.yml new
+57
@@ -0,0 +1,57 @@
1 +name: Nonfinal V6 Excel UI integration gap probe
2 +on:
3 + push:
4 + paths:
5 + - .github/workflows/v6-excel-ui-contract-probe-once.yml
6 +permissions:
7 + contents: read
8 +jobs:
9 + inspect:
10 + runs-on: windows-2022
11 + timeout-minutes: 12
12 + steps:
13 + - name: Isolated private source contract inspection
14 + shell: pwsh
15 + env:
16 + TF_VALIDATION_READ_TOKEN: ${{ secrets.TF_VALIDATION_READ_TOKEN }}
17 + run: |
18 + $ErrorActionPreference='Stop'
19 + if([string]::IsNullOrWhiteSpace($env:TF_VALIDATION_READ_TOKEN)){throw 'PRIVATE_SOURCE_READ_TOKEN_MISSING'}
20 + $env:GH_TOKEN=$env:TF_VALIDATION_READ_TOKEN
21 + $root=Join-Path $env:RUNNER_TEMP 'v6-excel-ui-synthetic-probe'
22 + New-Item -ItemType Directory -Path $root -Force | Out-Null
23 + & gh release download validation-inputs-20261017 --repo davoodmehraban89/TreasuryFlow-Validation-Private --pattern TreasuryFlow_Validation_Staging_20261017.zip --dir $root *> (Join-Path $root 'private-transfer.log')
24 + if($LASTEXITCODE -ne 0){throw 'PRIVATE_DOWNLOAD_FAILED'}
25 + $source=Join-Path $root 'TreasuryFlow_Validation_Staging_20261017.zip'
26 + if((Get-FileHash $source -Algorithm SHA256).Hash -ne '9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f'){throw 'PRIVATE_INPUT_SHA256_MISMATCH'}
27 + $env:GH_TOKEN=''
28 + $env:TF_VALIDATION_READ_TOKEN=''
29 + $dst=Join-Path $root 'private-stage'
30 + Expand-Archive -LiteralPath $source -DestinationPath $dst
31 + $p=Get-Content (Join-Path $dst 'package.json') -Raw | ConvertFrom-Json
32 + if($p.version -ne '1.0.1'){throw 'UNEXPECTED_PACKAGE_VERSION'}
33 + $routes=Get-ChildItem -LiteralPath (Join-Path $dst 'src/app') -Recurse -File | Where-Object {$_.Name -match '^page[.][jt]sx?$'}
34 + $sourceFiles=Get-ChildItem -LiteralPath (Join-Path $dst 'src') -Recurse -File | Where-Object {$_.Name -match '[.][jt]sx?$'}
35 + $excelSources=@($sourceFiles | Where-Object { $_.Name -match '(?i)excel|xlsx|workbook|spreadsheet|import|export' })
36 + $excelTests=@($sourceFiles | Where-Object { $_.Name -match '(?i)excel|xlsx|workbook|spreadsheet' -and $_.Name -match '[.]test[.]' })
37 + $fileInputs=0
38 + $excelUiMentions=0
39 + $excelImportActions=0
40 + foreach($route in $routes){
41 + $content=Get-Content -LiteralPath $route.FullName -Raw
42 + if($content -match '(?i)type\s*=\s*[\x27\x22]file[\x27\x22]|<input[^>]+type\s*=\s*[\x27\x22]file'){ $fileInputs++ }
43 + if($content -match '(?i)\.xlsx|\.xls|Excel|import.*workbook|ورود فایل|بارگذاری فایل|خروجی اکسل'){ $excelUiMentions++ }
44 + if($content -match '(?i)parse.*workbook|read.*spreadsheet|import.*excel'){ $excelImportActions++ }
45 + }
46 + $excelUnitContent=0
47 + foreach($f in $excelSources) {
48 + if($f.Length -gt 200) {$excelUnitContent++}
49 + }
50 + Write-Host 'GATE_PASS_PINNED_PRIVATE_V6_STAGING_INPUT'
51 + Write-Host ('PUBLIC_SAFE_ROUTE_COUNT='+$routes.Count)
52 + Write-Host ('PUBLIC_SAFE_EXCEL_RELATED_SOURCE_FILES='+$excelSources.Count)
53 + Write-Host ('PUBLIC_SAFE_EXCEL_RELATED_UNIT_TEST_FILES='+$excelTests.Count)
54 + Write-Host ('PUBLIC_SAFE_EXCEL_ROUTE_MENTIONS='+$excelUiMentions)
55 + Write-Host ('PUBLIC_SAFE_UPLOAD_INPUT_ROUTES='+$fileInputs)
56 + Write-Host ('PUBLIC_SAFE_EXCEL_ACTION_ROUTE_PATTERNS='+$excelImportActions)
57 + Write-Host 'GATE_PASS_SOURCE_METADATA_ONLY_NO_PRIVATE_FILES_EMITTED'