@@ -190,15 +190,21 @@ jobs:
190190 $headers = @{
191191 'Authorization' = 'Bearer ${{ secrets.SIGNPATH_API_TOKEN }}'
192192 }
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"
194200
195201 # Submit VDD for signing
196202 if (Test-Path "signpath-artifacts/VirtualDisplayDriver.zip") {
197203 Write-Output "Submitting Virtual Display Driver to SignPath..."
198204 try {
199205 $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 }}'
202208 'Artifact' = Get-Item "signpath-artifacts/VirtualDisplayDriver.zip"
203209 'Description' = "Virtual Display Driver - Build ${{ github.run_number }}"
204210 }
@@ -222,8 +228,8 @@ jobs:
222228 Write-Output "Submitting Virtual Audio Driver to SignPath..."
223229 try {
224230 $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 }}'
227233 'Artifact' = Get-Item "signpath-artifacts/VirtualAudioDriver.zip"
228234 'Description' = "Virtual Audio Driver - Build ${{ github.run_number }}"
229235 }
@@ -246,16 +252,12 @@ jobs:
246252 if (Test-Path "signpath-artifacts/VirtualDriverControlPanel.zip") {
247253 Write-Output "Submitting Control Panel to SignPath..."
248254 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-
253255 $artifact = Get-Item "signpath-artifacts/VirtualDriverControlPanel.zip"
254256 Write-Output "Artifact size: $($artifact.Length) bytes"
255257
256258 $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 }}'
259261 'Artifact' = $artifact
260262 'Description' = "Virtual Driver Control Panel - Build ${{ github.run_number }}"
261263 }
@@ -272,11 +274,15 @@ jobs:
272274 echo "CONTROL_PANEL_SIGNING_REQUEST_ID=$($controlResponse.SigningRequestId)" >> $env:GITHUB_ENV
273275 } catch {
274276 Write-Output "❌ Failed to submit Control Panel to SignPath: $($_.Exception.Message)"
275- Write-Output "❌ Response: $($_.Exception.Response)"
276277 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+ }
280286 }
281287 }
282288 }
0 commit comments