From 3353726aef78a99232bad302bb59df34fabf8a34 Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Mon, 17 Aug 2026 15:51:56 -0400 Subject: [PATCH] Harden CO-SERVER host build runner --- .github/workflows/host.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/host.yml b/.github/workflows/host.yml index 5960cca..babcabb 100644 --- a/.github/workflows/host.yml +++ b/.github/workflows/host.yml @@ -11,16 +11,19 @@ on: - ".github/workflows/host.yml" workflow_dispatch: +permissions: + contents: read + jobs: build: name: Build Avalonia host - runs-on: [self-hosted, Linux, X64] + runs-on: [self-hosted, Linux, X64, co-server] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 + with: + persist-credentials: false - - uses: actions/setup-dotnet@v4 - # The runner user cannot write to system /usr/share/dotnet; install the - # pinned SDK into a runner-writable, cached path instead. + - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 env: DOTNET_INSTALL_DIR: ${{ runner.tool_cache }}/dotnet with: