Skip to content

Harden NSIS host runtime command handling and SHA fallback#80

Merged
svelderrainruiz merged 1 commit into
mainfrom
fix/nsis-host-runtime-native-stderr-hash-fallback
Feb 27, 2026
Merged

Harden NSIS host runtime command handling and SHA fallback#80
svelderrainruiz merged 1 commit into
mainfrom
fix/nsis-host-runtime-native-stderr-hash-fallback

Conversation

@svelderrainruiz
Copy link
Copy Markdown
Contributor

Summary

  • harden installer/runtime native command handling so git/gh stderr does not terminate execution under ErrorActionPreference=Stop
  • add deterministic SHA256 helper with .NET fallback when Get-FileHash is unavailable in installer host contexts
  • mirror governance script hardening into payload copy used by the NSIS installer

Why

Host NSIS validation through release-control-plane was failing due:

  1. native command stderr being treated as terminating failures (From ..., No such remote 'upstream')
  2. direct Get-FileHash dependency in installer runtime

This change keeps behavior deterministic while removing those false-negative failure modes.

Validation

  • Invoke-Pester -Path ./tests -CI (240/240 passing)

@svelderrainruiz svelderrainruiz merged commit 775c72b into main Feb 27, 2026
3 of 6 checks passed
@svelderrainruiz svelderrainruiz deleted the fix/nsis-host-runtime-native-stderr-hash-fallback branch February 27, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant