Replace whoami subprocess with .NET API in diag #15
Reference in New Issue
Block a user
Delete Branch "fix-whoami"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
whoami.exe is not on PATH for pwsh under the gitea-runner SYSTEM context, so the previous diagnostic aborted before any of the actual cwd/ISCC output got printed. Use [Security.Principal.WindowsIdentity]::GetCurrent().Name which is in-process.