Replace whoami subprocess with .NET API in diag #15

Merged
justin merged 1 commits from fix-whoami into main 2026-05-08 13:41:18 -04:00

1 Commits

Author SHA1 Message Date
justin a026fb361d Replace whoami subprocess with .NET API in diag
whoami.exe isn't on PATH for pwsh under the gitea-runner SYSTEM
context (or pwsh's strict mode treats the lookup as fatal), so the
previous diagnostic line aborted the script before any of the cwd /
ISCC-dir output was printed. Use WindowsIdentity.GetCurrent().Name
which is in-process and always works.
2026-05-08 13:41:01 -04:00