Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): avoid traversing live Windows cache ACLs

Ezra Ellette58c3a7e52f21
diff --git a/infra/release-windows-runner/configure-runner.ps1 b/infra/release-windows-runner/configure-runner.ps1
index e1537d793..a698f7f44 100644
--- a/infra/release-windows-runner/configure-runner.ps1
+++ b/infra/release-windows-runner/configure-runner.ps1
@@ -68,7 +68,7 @@ if (Test-Path '.runner') {
if ($LASTEXITCODE -ne 0) { throw "runner removal failed with exit code $LASTEXITCODE" }
}
-& icacls.exe $cacheRoot /grant 'NT AUTHORITY\NETWORK SERVICE:(OI)(CI)F' /T /Q
+& icacls.exe $cacheRoot /grant 'NT AUTHORITY\NETWORK SERVICE:(OI)(CI)F' /Q
if ($LASTEXITCODE -ne 0) { throw "cache ACL setup failed with exit code $LASTEXITCODE" }
& .\config.cmd --unattended --replace --url "https://github.com/$Repository" --token $RegistrationToken --name $runnerName --labels $runnerLabel --no-default-labels --work "$cacheRoot\work" --runasservice --windowslogonaccount 'NT AUTHORITY\NETWORK SERVICE'