From 9c4580daaf5db0cf84dda089b0c8a1f481c61568 Mon Sep 17 00:00:00 2001 From: NomadsReach <144523850+NomadsReach@users.noreply.github.com> Date: Sun, 16 Aug 2026 17:43:16 -0400 Subject: [PATCH] Install the pinned .NET SDK to a runner-writable dir on self-hosted CI setup-dotnet defaulted to /usr/share/dotnet, which the runner user cannot write to (Permission denied). Point DOTNET_INSTALL_DIR at runner.tool_cache so the 8.0 SDK installs into a writable, cached location. --- .github/workflows/csharp-server.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/csharp-server.yml b/.github/workflows/csharp-server.yml index 63d3261..1d953de 100644 --- a/.github/workflows/csharp-server.yml +++ b/.github/workflows/csharp-server.yml @@ -9,6 +9,10 @@ jobs: build-and-test: name: Repository policy, C# build and test runs-on: [self-hosted, Linux, X64] + # The self-hosted runner user cannot write to the system /usr/share/dotnet, + # so install the pinned SDK into a runner-writable (and cached) path instead. + env: + DOTNET_INSTALL_DIR: ${{ runner.tool_cache }}/dotnet steps: - uses: actions/checkout@v4