Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
One-shot SHA-pinned V6 portable Windows readiness with disabled bank and no private artifacts
davoodmehraban89 committed
Oct 17, 2026 at 23:08 UTC
a47bb05225ce480dd3b031ce2d03bd4ea7763794
1 file changed
+70
.github/workflows/v6-portable-readiness-once.yml
new
+70
@@ -0,0 +1,70 @@
1
+name: V6 original portable Windows readiness (NOT V7)
2
+on:
3
+ push:
4
+ branches: ['ci/public-windows-bridge-probe-20261017']
5
+ paths: ['.github/workflows/v6-portable-readiness-once.yml']
6
+permissions:
7
+ contents: read
8
+concurrency:
9
+ group: treasuryflow-v6-portable-once
10
+ cancel-in-progress: false
11
+jobs:
12
+ probe:
13
+ name: Windows 2022 - SHA-pinned original V6 portable readiness
14
+ runs-on: windows-2022
15
+ timeout-minutes: 30
16
+ defaults:
17
+ run:
18
+ shell: pwsh
19
+ env:
20
+ BANK_ADAPTER_MODE: disabled
21
+ TREASURYFLOW_ENABLE_MAYAN_EXTERNAL_READ: '0'
22
+ TREASURYFLOW_MAYAN_ENABLE_EXTERNAL_READ: '0'
23
+ TREASURYFLOW_ENABLE_SQL_LAB: '0'
24
+ TREASURYFLOW_DESKTOP_LOCAL: '1'
25
+ steps:
26
+ - name: Retrieve privately and verify original V6 source tools and EXE hashes
27
+ env:
28
+ GH_TOKEN: ${{ secrets.TF_VALIDATION_READ_TOKEN }}
29
+ run: |
30
+ $ErrorActionPreference='Stop'
31
+ if([string]::IsNullOrWhiteSpace($env:GH_TOKEN)){throw 'PRIVATE_TOKEN_NOT_CONFIGURED'}
32
+ $input=Join-Path $env:RUNNER_TEMP 'private-v6-inputs'
33
+ $stage=Join-Path $env:RUNNER_TEMP 'private-v6-stage'
34
+ $unpacked=Join-Path $env:RUNNER_TEMP 'private-v6-exe'
35
+ New-Item -Force -ItemType Directory -Path $input,$stage,$unpacked | Out-Null
36
+ gh release download validation-inputs-20261017 --repo davoodmehraban89/TreasuryFlow-Validation-Private --pattern TreasuryFlow_Validation_Staging_20261017.zip --pattern release-native-v6-final.rar --dir $input *> (Join-Path $env:RUNNER_TEMP 'private-input-download.log')
37
+ if($LASTEXITCODE -ne 0){throw 'PRIVATE_RELEASE_DOWNLOAD_FAILED'}
38
+ $zip=Join-Path $input 'TreasuryFlow_Validation_Staging_20261017.zip'
39
+ $rar=Join-Path $input 'release-native-v6-final.rar'
40
+ if((Get-FileHash -LiteralPath $zip -Algorithm SHA256).Hash -ine '9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f'){throw 'SOURCE_SHA_MISMATCH'}
41
+ if((Get-FileHash -LiteralPath $rar -Algorithm SHA256).Hash -ine 'b8629defc172cef972ad12bb3a2e45a55abed3a5e3a5d991ab2567b877e0c915'){throw 'PORTABLE_ARCHIVE_SHA_MISMATCH'}
42
+ Expand-Archive -LiteralPath $zip -DestinationPath $stage -Force
43
+ if(!(Test-Path -LiteralPath (Join-Path $stage 'qa/windows/portable-v6-smoke.ps1'))){throw 'SMOKE_SCRIPT_NOT_PRESENT'}
44
+ & 7z.exe x -y "-o$unpacked" $rar *> (Join-Path $env:RUNNER_TEMP 'private-extract.log')
45
+ if($LASTEXITCODE -ne 0){throw 'PORTABLE_EXTRACT_FAILED'}
46
+ $exe=Get-ChildItem -LiteralPath $unpacked -Filter 'TreasuryFlow-1.0.1-Windows-x64.exe' -Recurse -File | Select-Object -First 1
47
+ if(!$exe){throw 'PORTABLE_EXE_MISSING'}
48
+ if((Get-FileHash -LiteralPath $exe.FullName -Algorithm SHA256).Hash -ine '99976331f606d8c8ffcf8e9f4895848ff736870790e14b4c7f08a0abdbb7a50a'){throw 'PORTABLE_EXE_SHA_MISMATCH'}
49
+ "TF_PRIVATE_STAGE=$stage" >> $env:GITHUB_ENV
50
+ "TF_PRIVATE_EXE=$($exe.FullName)" >> $env:GITHUB_ENV
51
+ Write-Host 'GATE_PASS_ALL_THREE_PRIVATE_SHA256_CHECKS'
52
+ - name: Run pinned original V6 portable in isolated Windows VM
53
+ timeout-minutes: 15
54
+ run: |
55
+ $ErrorActionPreference='Stop'
56
+ Set-Location -LiteralPath $env:TF_PRIVATE_STAGE
57
+ $log=Join-Path $env:RUNNER_TEMP 'private-v6-portable-run.log'
58
+ & ./qa/windows/portable-v6-smoke.ps1 -Executable $env:TF_PRIVATE_EXE -ExpectedSha256 '99976331f606d8c8ffcf8e9f4895848ff736870790e14b4c7f08a0abdbb7a50a' -EvidenceDir $env:RUNNER_TEMP *> $log
59
+ if($LASTEXITCODE -ne 0){throw 'PORTABLE_V6_READINESS_FAILED'}
60
+ $evidence=Join-Path $env:RUNNER_TEMP 'v6-portable-runtime.json'
61
+ if(!(Test-Path -LiteralPath $evidence)){throw 'PORTABLE_EVIDENCE_MISSING'}
62
+ $r=Get-Content -LiteralPath $evidence -Raw | ConvertFrom-Json
63
+ if($r.status -ne 'PASS_READY_ONLY' -or !$r.ready -or !$r.bankDisabled){throw 'PORTABLE_READINESS_CONTRACT_FAILED'}
64
+ Write-Host 'GATE_PASS_ORIGINAL_V6_PORTABLE_LOCAL_READY_BANK_DISABLED'
65
+ - name: Publish only scope and privacy controls
66
+ if: always()
67
+ run: |
68
+ Write-Host 'SCOPE=ORIGINAL_V6_PORTABLE_STARTUP_ONLY'
69
+ Write-Host 'REAL_GUI=NOT_TESTED; SQL_SERVER_ENGINE=NOT_TESTED; WINDOWS_CLIPBOARD=NOT_TESTED; EXCEL=NOT_TESTED; INSTALL_UNINSTALL_UPGRADE=NOT_TESTED; V7=NOT_TESTED'
70
+ Write-Host 'PRIVATE_SOURCE_EXE_AND_LOGS=NOT_PUBLISHED'