@@ -190,15 +190,21 @@ jobs:
190
190
$headers = @{
191
191
'Authorization' = 'Bearer ${{ secrets.SIGNPATH_API_TOKEN }}'
192
192
}
193
- $baseUrl = "https://app.signpath.io/api/v1/${{ secrets.SIGNPATH_ORGANIZATION_ID }}"
193
+ $baseUrl = "https://app.signpath.io/api/v1/${{ vars.SIGNPATH_ORG_ID }}"
194
+
195
+ Write-Output "SignPath Configuration:"
196
+ Write-Output "Organization ID: ${{ vars.SIGNPATH_ORG_ID }}"
197
+ Write-Output "Project Slug: ${{ vars.SIGNPATH_PROJECT_SLUG }}"
198
+ Write-Output "Policy Slug: ${{ vars.SIGNPATH_POLICY_SLUG }}"
199
+ Write-Output "Base URL: $baseUrl"
194
200
195
201
# Submit VDD for signing
196
202
if (Test-Path "signpath-artifacts/VirtualDisplayDriver.zip") {
197
203
Write-Output "Submitting Virtual Display Driver to SignPath..."
198
204
try {
199
205
$formData = @{
200
- 'ProjectSlug' = '${{ secrets .SIGNPATH_PROJECT_SLUG }}'
201
- 'SigningPolicySlug' = '${{ secrets.SIGNPATH_SIGNING_POLICY_SLUG }}'
206
+ 'ProjectSlug' = '${{ vars .SIGNPATH_PROJECT_SLUG }}'
207
+ 'SigningPolicySlug' = '${{ vars.SIGNPATH_POLICY_SLUG }}'
202
208
'Artifact' = Get-Item "signpath-artifacts/VirtualDisplayDriver.zip"
203
209
'Description' = "Virtual Display Driver - Build ${{ github.run_number }}"
204
210
}
@@ -222,8 +228,8 @@ jobs:
222
228
Write-Output "Submitting Virtual Audio Driver to SignPath..."
223
229
try {
224
230
$formData = @{
225
- 'ProjectSlug' = '${{ secrets .SIGNPATH_PROJECT_SLUG }}'
226
- 'SigningPolicySlug' = '${{ secrets.SIGNPATH_SIGNING_POLICY_SLUG }}'
231
+ 'ProjectSlug' = '${{ vars .SIGNPATH_PROJECT_SLUG }}'
232
+ 'SigningPolicySlug' = '${{ vars.SIGNPATH_POLICY_SLUG }}'
227
233
'Artifact' = Get-Item "signpath-artifacts/VirtualAudioDriver.zip"
228
234
'Description' = "Virtual Audio Driver - Build ${{ github.run_number }}"
229
235
}
@@ -246,16 +252,12 @@ jobs:
246
252
if (Test-Path "signpath-artifacts/VirtualDriverControlPanel.zip") {
247
253
Write-Output "Submitting Control Panel to SignPath..."
248
254
try {
249
- Write-Output "API Base URL: $baseUrl"
250
- Write-Output "Project Slug: ${{ secrets.SIGNPATH_PROJECT_SLUG }}"
251
- Write-Output "Signing Policy: ${{ secrets.SIGNPATH_SIGNING_POLICY_SLUG }}"
252
-
253
255
$artifact = Get-Item "signpath-artifacts/VirtualDriverControlPanel.zip"
254
256
Write-Output "Artifact size: $($artifact.Length) bytes"
255
257
256
258
$formData = @{
257
- 'ProjectSlug' = '${{ secrets .SIGNPATH_PROJECT_SLUG }}'
258
- 'SigningPolicySlug' = '${{ secrets.SIGNPATH_SIGNING_POLICY_SLUG }}'
259
+ 'ProjectSlug' = '${{ vars .SIGNPATH_PROJECT_SLUG }}'
260
+ 'SigningPolicySlug' = '${{ vars.SIGNPATH_POLICY_SLUG }}'
259
261
'Artifact' = $artifact
260
262
'Description' = "Virtual Driver Control Panel - Build ${{ github.run_number }}"
261
263
}
@@ -272,11 +274,15 @@ jobs:
272
274
echo "CONTROL_PANEL_SIGNING_REQUEST_ID=$($controlResponse.SigningRequestId)" >> $env:GITHUB_ENV
273
275
} catch {
274
276
Write-Output "❌ Failed to submit Control Panel to SignPath: $($_.Exception.Message)"
275
- Write-Output "❌ Response: $($_.Exception.Response)"
276
277
if ($_.Exception.Response) {
277
- $reader = New-Object System.IO.StreamReader($_.Exception.Response.GetResponseStream())
278
- $responseBody = $reader.ReadToEnd()
279
- Write-Output "❌ Response body: $responseBody"
278
+ Write-Output "❌ Response Status: $($_.Exception.Response.StatusCode)"
279
+ Write-Output "❌ Response Headers: $($_.Exception.Response.Headers)"
280
+ try {
281
+ $responseBody = $_.Exception.Response.Content.ReadAsStringAsync().Result
282
+ Write-Output "❌ Response body: $responseBody"
283
+ } catch {
284
+ Write-Output "❌ Could not read response body"
285
+ }
280
286
}
281
287
}
282
288
}
0 commit comments