Skip to content

Commit a3e35c3

Browse files
committed
ci: check cert location
1 parent 5bffda2 commit a3e35c3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,31 @@ jobs:
222222
jq --arg thumbprint "$THUMBPRINT" '.bundle.windows.certificateThumbprint = $thumbprint' "$CONFIG_PATH" > tmp.$$ && mv tmp.$$ "$CONFIG_PATH"
223223
224224
echo "Certificate thumbprint configured: $THUMBPRINT"
225+
226+
- name: Diagnose cert store after SimplySign login (Windows)
227+
if: matrix.platform == 'windows'
228+
shell: pwsh
229+
run: |
230+
Start-Sleep -Seconds 60 # Wait for cert store to update
231+
Write-Host "=== WHOAMI ==="
232+
whoami
233+
234+
Write-Host "=== LIST CurrentUser\\My ==="
235+
certutil -user -store My
236+
237+
Write-Host "=== LIST LocalMachine\\My ==="
238+
certutil -store My
239+
240+
Write-Host "=== FILTER BY THUMBPRINT (if provided) ==="
241+
$tp = "${{ secrets.CERTUM_CERTIFICATE_SHA1 }}".Replace(" ", "").ToUpper()
242+
if ($tp) {
243+
$hit = Get-ChildItem Cert:\CurrentUser\My | Where-Object { $_.Thumbprint -eq $tp }
244+
if ($hit) {
245+
$hit | Format-List Subject, Thumbprint, NotAfter, HasPrivateKey
246+
} else {
247+
Write-Host "NOT FOUND in CurrentUser\\My: $tp"
248+
}
249+
}
225250
226251
- name: Build the app
227252
if: matrix.platform == 'windows' || matrix.platform == 'linux'

0 commit comments

Comments
 (0)