Skip to content

Commit 172efaa

Browse files
committed
chore: PR cleanup
1 parent 3b81242 commit 172efaa

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

.github/scripts/release/sign-windows.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,8 @@ function Patch-Binaries {
253253
function Save-Credentials {
254254
Write-Host "Saving credentials to Windows Credential Manager..."
255255

256-
# Length only; never log secret values. Assert-EnvVar already guarantees non-empty.
257256
Write-Host "SM_API_KEY length: $($env:SM_API_KEY.Length), SM_CLIENT_CERT_PASSWORD length: $($env:SM_CLIENT_CERT_PASSWORD.Length)"
258257

259-
# Stop parsing token bypasses PowerShell argv processing so secrets containing
260-
# spaces, quotes, $, backticks, or a leading dash are passed verbatim. Without it,
261-
# mangled argv surfaces as CredWriteW RPC_X_BAD_STUB_DATA ("The stub received bad data").
262258
& smctl.exe credentials save --% "%SM_API_KEY%" "%SM_CLIENT_CERT_PASSWORD%"
263259

264260
if ($LASTEXITCODE -ne 0) {
@@ -351,11 +347,6 @@ function Main {
351347
# Patch all Windows binaries with resources (icon, manifest, version info)
352348
Patch-Binaries -Platforms $windowsPlatforms
353349

354-
# Skip Save-Credentials: smctl + Windows Credential Manager returns RPC_X_BAD_STUB_DATA
355-
# on Windows runners. smctl reads SM_HOST, SM_API_KEY, SM_CLIENT_CERT_FILE,
356-
# SM_CLIENT_CERT_PASSWORD directly from the process env, which the workflow already sets.
357-
# Save-Credentials
358-
359350
# Run healthcheck
360351
Invoke-Healthcheck
361352

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129

130130
sign_windows:
131131
name: Sign Windows Binaries
132-
#if: ${{ needs.detect_release.outputs.is_release == 'true' }}
132+
if: ${{ needs.detect_release.outputs.is_release == 'true' }}
133133
needs: [detect_release, build]
134134
uses: ./.github/workflows/sign-windows.yml
135135
secrets: inherit

0 commit comments

Comments
 (0)