Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

[codex] Fix Windows release signing setup (#2606)

Julius Marminge073eb389d3b8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4409c54c8..16bbc25f2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -244,6 +244,62 @@ jobs:
exit $code
}
+ - name: Prepare Azure Trusted Signing
+ if: matrix.platform == 'win'
+ shell: pwsh
+ env:
+ AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
+ AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
+ AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
+ AZURE_TRUSTED_SIGNING_ENDPOINT: ${{ secrets.AZURE_TRUSTED_SIGNING_ENDPOINT }}
+ AZURE_TRUSTED_SIGNING_ACCOUNT_NAME: ${{ secrets.AZURE_TRUSTED_SIGNING_ACCOUNT_NAME }}
+ AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAME: ${{ secrets.AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAME }}
+ AZURE_TRUSTED_SIGNING_PUBLISHER_NAME: ${{ secrets.AZURE_TRUSTED_SIGNING_PUBLISHER_NAME }}
+ run: |
+ $ErrorActionPreference = "Stop"
+
+ $requiredSecrets = @(
+ $env:AZURE_TENANT_ID,
+ $env:AZURE_CLIENT_ID,
+ $env:AZURE_CLIENT_SECRET,
+ $env:AZURE_TRUSTED_SIGNING_ENDPOINT,
+ $env:AZURE_TRUSTED_SIGNING_ACCOUNT_NAME,
+ $env:AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAME,
+ $env:AZURE_TRUSTED_SIGNING_PUBLISHER_NAME
+ )
+ if ($requiredSecrets | Where-Object { [string]::IsNullOrWhiteSpace($_) }) {
+ Write-Host "Azure Trusted Signing disabled; skipping TrustedSigning module preparation."
+ exit 0
+ }
+
+ Install-PackageProvider `
+ -Name NuGet `
+ -MinimumVersion 2.8.5.201 `
+ -Force `
+ -Scope CurrentUser
+
+ Install-Module `
+ -Name TrustedSigning `
+ -MinimumVersion 0.5.0 `
+ -Force `
+ -AllowClobber `
+ -Repository PSGallery `
+ -Scope CurrentUser
+
+ Import-Module TrustedSigning -MinimumVersion 0.5.0 -Force
+ Get-Command Invoke-TrustedSigning -ErrorAction Stop
+
+ $moduleRoots = @(
+ [System.IO.Path]::Combine([Environment]::GetFolderPath("MyDocuments"), "PowerShell", "Modules"),
+ [System.IO.Path]::Combine([Environment]::GetFolderPath("MyDocuments"), "WindowsPowerShell", "Modules"),
+ [System.IO.Path]::Combine($env:ProgramFiles, "PowerShell", "Modules"),
+ [System.IO.Path]::Combine($env:ProgramFiles, "WindowsPowerShell", "Modules")
+ )
+ $modulePathEntries = @($moduleRoots + ($env:PSModulePath -split ";")) |
+ Where-Object { $_ -and (Test-Path $_) } |
+ Select-Object -Unique
+ "PSModulePath=$($modulePathEntries -join ';')" >> $env:GITHUB_ENV
+
- name: Build desktop artifact
shell: bash
env: