Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Remove one-shot validation workflow containing temporary automatic trigger after initial diagnostic run
davoodmehraban89 committed
Oct 17, 2026 at 14:33 UTC
af1f1a37ca1a17551e83afdd3c0b27786e507adf
1 file changed
-140
.github/workflows/windows-v6-private-inputs-public-runner.yml
deleted
-140
@@ -1,140 +0,0 @@
1
-name: V6 private inputs on free public Windows runner (NOT V7)
2
-on:
3
- push:
4
- branches: ['ci/public-windows-bridge-probe-20261017']
5
- paths: ['.github/workflows/windows-v6-private-inputs-public-runner.yml']
6
- workflow_dispatch:
7
-
8
-permissions:
9
- contents: read
10
-
11
-concurrency:
12
- group: treasuryflow-public-windows-v6-validation
13
- cancel-in-progress: false
14
-
15
-jobs:
16
- validate-v6:
17
- name: Windows 2022 — private V6 inputs, sanitized evidence only
18
- runs-on: windows-2022
19
- timeout-minutes: 75
20
- env:
21
- BANK_ADAPTER_MODE: disabled
22
- TREASURYFLOW_ENABLE_MAYAN_EXTERNAL_READ: '0'
23
- TREASURYFLOW_MAYAN_ENABLE_EXTERNAL_READ: '0'
24
- TREASURYFLOW_ENABLE_SQL_LAB: '0'
25
- TREASURYFLOW_DESKTOP_LOCAL: '1'
26
- TF_PRIVATE_TAG: validation-inputs-20261017
27
- defaults:
28
- run:
29
- shell: pwsh
30
- steps:
31
- - name: Verify private release inputs with scoped read-only token
32
- env:
33
- GH_TOKEN: ${{ secrets.TF_VALIDATION_READ_TOKEN }}
34
- run: |
35
- $ErrorActionPreference='Stop'
36
- if ([string]::IsNullOrWhiteSpace($env:GH_TOKEN)) { throw 'PRIVATE_READ_TOKEN_NOT_CONFIGURED' }
37
- $inputDir=Join-Path $env:RUNNER_TEMP 'tf-private-inputs'
38
- $sourceDir=Join-Path $env:RUNNER_TEMP 'tf-v6-stage'
39
- $exeDir=Join-Path $env:RUNNER_TEMP 'tf-v6-portable'
40
- New-Item -ItemType Directory -Force -Path $inputDir,$sourceDir,$exeDir | Out-Null
41
- gh release download $env:TF_PRIVATE_TAG --repo 'davoodmehraban89/TreasuryFlow-Validation-Private' --pattern 'TreasuryFlow_Validation_Staging_20261017.zip' --pattern 'release-native-v6-final.rar' --dir $inputDir 1>$null 2>$null
42
- if ($LASTEXITCODE -ne 0) { throw 'PRIVATE_RELEASE_DOWNLOAD_FAILED' }
43
- $inputs=@(
44
- @{name='TreasuryFlow_Validation_Staging_20261017.zip';sha='9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f'},
45
- @{name='release-native-v6-final.rar';sha='b8629defc172cef972ad12bb3a2e45a55abed3a5e3a5d991ab2567b877e0c915'}
46
- )
47
- foreach($f in $inputs) {
48
- $file=Join-Path $inputDir $f.name
49
- if (!(Test-Path -LiteralPath $file)) { throw 'PRIVATE_INPUT_MISSING' }
50
- $sha=(Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash
51
- if ($sha -ine $f.sha) { throw 'PRIVATE_INPUT_SHA256_FAILED' }
52
- }
53
- Expand-Archive -LiteralPath (Join-Path $inputDir 'TreasuryFlow_Validation_Staging_20261017.zip') -DestinationPath $sourceDir -Force
54
- if(!(Test-Path -LiteralPath (Join-Path $sourceDir 'native/MayanInterop/Program.cs'))) { throw 'RECOVERED_NATIVE_SOURCE_MISSING' }
55
- $seven=(Get-Command 7z.exe -ErrorAction Stop).Source
56
- & $seven x -y "-o$exeDir" (Join-Path $inputDir 'release-native-v6-final.rar') *> (Join-Path $env:RUNNER_TEMP 'private-extract.log')
57
- if ($LASTEXITCODE -ne 0) { throw 'PRIVATE_RAR_EXTRACT_FAILED' }
58
- $exe=Get-ChildItem -LiteralPath $exeDir -Filter 'TreasuryFlow-1.0.1-Windows-x64.exe' -File -Recurse | Select-Object -First 1
59
- if(!$exe){throw 'V6_EXE_MISSING'}
60
- if((Get-FileHash -LiteralPath $exe.FullName -Algorithm SHA256).Hash -ine '99976331f606d8c8ffcf8e9f4895848ff736870790e14b4c7f08a0abdbb7a50a'){throw 'V6_EXE_SHA256_FAILED'}
61
- "TF_PRIVATE_SOURCE_DIR=$sourceDir" >> $env:GITHUB_ENV
62
- "TF_PRIVATE_V6_EXE=$($exe.FullName)" >> $env:GITHUB_ENV
63
- "TF_PRIVATE_ASSET_SHA_PASS=true" >> $env:GITHUB_ENV
64
- Write-Host 'PRIVATE_INPUT_TRANSFER_AND_HASH_PASS (source and binaries will never be uploaded as public artifacts)'
65
-
66
- - name: Install Node 22 after private download token is removed
67
- uses: actions/setup-node@v4
68
- with:
69
- node-version: '22'
70
-
71
- - name: Run source test and build gates without printing proprietary output
72
- run: |
73
- $ErrorActionPreference='Stop'
74
- if ($env:TF_PRIVATE_ASSET_SHA_PASS -ne 'true') { throw 'PRIVATE_INPUTS_NOT_VERIFIED' }
75
- Set-Location -LiteralPath $env:TF_PRIVATE_SOURCE_DIR
76
- function Gate([string]$name,[scriptblock]$action){
77
- $log=Join-Path $env:RUNNER_TEMP ("private-gate-"+$name+".log")
78
- $global:LASTEXITCODE=0
79
- try {
80
- & $action *> $log
81
- if($LASTEXITCODE -ne 0){throw 'NONZERO_EXIT'}
82
- Write-Host "GATE_PASS: $name"
83
- } catch {
84
- throw "GATE_FAIL: $name (full private log intentionally withheld from PUBLIC repository)"
85
- }
86
- }
87
- Gate 'npm-ci' { npm ci --no-audit --no-fund }
88
- Gate 'readonly-sql-guard' { node --test src/platform/integration/readonly-sql-policy.node.mjs }
89
- Gate 'copyable-sql-widget' { node scripts/check-sql-copy-ui.mjs }
90
- Gate 'typecheck' { npm run typecheck }
91
- Gate 'unit-tests' { npm test -- --reporter=dot }
92
- Gate 'lint' { npm run lint }
93
- Gate 'next-build' { npm run build }
94
- Gate 'standalone-bundle' { node scripts/prepare-standalone.mjs }
95
- $env:NODE_PATH=Join-Path $env:TF_PRIVATE_SOURCE_DIR '.next/standalone/vendor_modules'
96
- Gate 'standalone-smoke' { npm run smoke }
97
- "TF_SOURCE_GATES_PASS=true" >> $env:GITHUB_ENV
98
-
99
- - name: Compile and self-check recovered C-sharp bridge
100
- run: |
101
- $ErrorActionPreference='Stop'
102
- if($env:TF_SOURCE_GATES_PASS -ne 'true'){throw 'SOURCE_GATES_NOT_PASSED'}
103
- Set-Location -LiteralPath $env:TF_PRIVATE_SOURCE_DIR
104
- & ./scripts/build-mayan-native.ps1 *> (Join-Path $env:RUNNER_TEMP 'private-native-compile.log')
105
- if ($LASTEXITCODE -ne 0){throw 'NATIVE_BUILD_FAILED'}
106
- $exe=Join-Path $env:TF_PRIVATE_SOURCE_DIR 'native/MayanInterop/TreasuryFlow.MayanInterop.exe'
107
- if(!(Test-Path -LiteralPath $exe)){throw 'NATIVE_OUTPUT_MISSING'}
108
- $hash=(Get-FileHash -LiteralPath $exe -Algorithm SHA256).Hash
109
- $result=(& $exe 'verify-assembly' $exe $hash | ConvertFrom-Json)
110
- if($LASTEXITCODE -ne 0 -or !$result.ok -or $result.loadedForExecution -ne $false){throw 'NATIVE_SELF_CHECK_FAILED'}
111
- Write-Host 'GATE_PASS: native-compile-and-self-check'
112
- "TF_NATIVE_PASS=true" >> $env:GITHUB_ENV
113
-
114
- - name: Run SHA256 pinned original V6 portable on Windows
115
- run: |
116
- $ErrorActionPreference='Stop'
117
- if($env:TF_NATIVE_PASS -ne 'true'){throw 'NATIVE_NOT_VALIDATED'}
118
- Set-Location -LiteralPath $env:TF_PRIVATE_SOURCE_DIR
119
- & ./qa/windows/portable-v6-smoke.ps1 -Executable $env:TF_PRIVATE_V6_EXE -ExpectedSha256 '99976331f606d8c8ffcf8e9f4895848ff736870790e14b4c7f08a0abdbb7a50a' -EvidenceDir $env:RUNNER_TEMP *> (Join-Path $env:RUNNER_TEMP 'private-v6-runtime.log')
120
- if($LASTEXITCODE -ne 0){throw 'V6_PORTABLE_READINESS_FAILED'}
121
- $result=Get-Content -Raw -LiteralPath (Join-Path $env:RUNNER_TEMP 'v6-portable-runtime.json') | ConvertFrom-Json
122
- if($result.status -ne 'PASS_READY_ONLY' -or !$result.ready -or !$result.bankDisabled){throw 'V6_READINESS_CONTRACT_FAILED'}
123
- "TF_V6_PORTABLE_PASS=true" >> $env:GITHUB_ENV
124
- Write-Host 'GATE_PASS: V6 portable process and local readiness (NOT full GUI/SQL Server)'
125
-
126
- - name: Publish only non-sensitive pass/fail gate summary
127
- if: always()
128
- run: |
129
- $report=[ordered]@{
130
- stage='PRELIMINARY_V6_PUBLIC_RUNNER'
131
- privateInputsHashValidated=($env:TF_PRIVATE_ASSET_SHA_PASS -eq 'true')
132
- sourceGatePassed=($env:TF_SOURCE_GATES_PASS -eq 'true')
133
- nativeGatePassed=($env:TF_NATIVE_PASS -eq 'true')
134
- portableReadinessPassed=($env:TF_V6_PORTABLE_PASS -eq 'true')
135
- sqlServerAcceptance='NOT_TESTED'
136
- v7Acceptance='NOT_TESTED'
137
- privateSourcePublished=$false
138
- productionBankConnections='DISABLED'
139
- }
140
- $report | ConvertTo-Json -Compress | Write-Host