فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(A06): require trusted offline license issuer key to build public Windows release
davoodmehraban89 committed
Oct 15, 2026 at 20:52 UTC
55239adc9dc2045feaa6afd66882006c6a81fd95
1 file changed
+17
-2
.github/workflows/phase-a-public-release.yml
+17
-2
@@ -28,6 +28,16 @@ jobs:
28
- run: npm ci
29
- name: Verify ALL production acceptance evidence and consistent version
30
run: node scripts/verify-phase-a-release.mjs "${{ inputs.release_tag }}"
31
+ - name: Verify production license issuer key is provisioned
32
+ env:
33
+ VITE_LICENSE_PUBLIC_JWK: ${{ secrets.VITE_LICENSE_PUBLIC_JWK }}
34
+ shell: bash
35
+ run: |
36
+ node --input-type=module -e '
37
+ import { loadProductionLicensePublicKey } from "./src/core/LicenseActivationCore.mjs";
38
+ if (!loadProductionLicensePublicKey(process.env.VITE_LICENSE_PUBLIC_JWK)) {
39
+ throw Error("Missing or malformed VITE_LICENSE_PUBLIC_JWK: A06 cannot ship");
40
+ }'
41
- name: Run the full accounting, backup and security tests
42
run: npm test
43
- name: Verify frontend and production dependencies
@@ -57,8 +67,13 @@ jobs:
67
run: node scripts/verify-phase-a-release.mjs "${{ inputs.release_tag }}"
68
- name: Run Windows integration tests
69
run: npm test
60
- - name: Build production x64 NSIS installer
61
- run: npm exec tauri build
70
+ - name: Build production x64 NSIS installer with trusted issuer
71
+ env:
72
+ VITE_LICENSE_PUBLIC_JWK: ${{ secrets.VITE_LICENSE_PUBLIC_JWK }}
73
+ shell: pwsh
74
+ run: |
75
+ if (-not $env:VITE_LICENSE_PUBLIC_JWK) { throw 'Production license issuer key is missing' }
76
+ npm exec tauri build
77
- name: Verify produced installer and SHA-256 checksum
78
shell: pwsh
79
run: |