From eedbb8d734af141d0c6f44423d3b1e71500e0b62 Mon Sep 17 00:00:00 2001 From: ahall Date: Fri, 6 Nov 2026 13:10:49 +0000 Subject: [PATCH] ci: pin ubuntu runners to ubuntu-26.04 instead of ubuntu-latest --- .github/workflows/build-docs.yml | 9 ++++++--- .github/workflows/build-library.yml | 6 ++++-- .../workflows/build-samples-datasync-server-cosmosdb.yml | 3 ++- .github/workflows/build-samples-datasync-server.yml | 3 ++- .github/workflows/build-samples-todoapp-avalonia.yml | 6 ++++-- .github/workflows/build-samples-todoapp-blazor-wasm.yml | 3 ++- .github/workflows/build-samples-todoapp-maui.yml | 3 ++- .github/workflows/build-samples-todoapp-mvc.yml | 3 ++- .github/workflows/build-samples-todoapp-tutorial.yml | 3 ++- .github/workflows/build-samples-todoapp-uno.yml | 9 ++++++--- .github/workflows/build-samples.yml | 3 ++- .github/workflows/build-template.yml | 6 ++++-- .github/workflows/stale-issues.yml | 3 ++- 13 files changed, 40 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index aeed3fd..6daef52 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -23,7 +23,8 @@ jobs: # artifact might actually be deployed (see the 'deploy' job below). build: if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 @@ -53,7 +54,8 @@ jobs: # above) so that a stray warning can never block the artifact that 'deploy' publishes. validate: if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 @@ -99,7 +101,8 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Setup Pages uses: actions/configure-pages@v6 diff --git a/.github/workflows/build-library.yml b/.github/workflows/build-library.yml index e48240b..c4ed1d5 100644 --- a/.github/workflows/build-library.yml +++ b/.github/workflows/build-library.yml @@ -44,7 +44,8 @@ permissions: jobs: build: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 permissions: pull-requests: write contents: read @@ -225,7 +226,8 @@ jobs: (github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/')) }} needs: [ sign ] environment: nuget-release-gate - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 permissions: id-token: write contents: read diff --git a/.github/workflows/build-samples-datasync-server-cosmosdb.yml b/.github/workflows/build-samples-datasync-server-cosmosdb.yml index 7468ba8..d71e13d 100644 --- a/.github/workflows/build-samples-datasync-server-cosmosdb.yml +++ b/.github/workflows/build-samples-datasync-server-cosmosdb.yml @@ -19,7 +19,8 @@ permissions: jobs: build: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-datasync-server.yml b/.github/workflows/build-samples-datasync-server.yml index 1a4f28f..e04ca5f 100644 --- a/.github/workflows/build-samples-datasync-server.yml +++ b/.github/workflows/build-samples-datasync-server.yml @@ -19,7 +19,8 @@ permissions: jobs: build: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-todoapp-avalonia.yml b/.github/workflows/build-samples-todoapp-avalonia.yml index e5a1f48..8d7a6d9 100644 --- a/.github/workflows/build-samples-todoapp-avalonia.yml +++ b/.github/workflows/build-samples-todoapp-avalonia.yml @@ -31,7 +31,8 @@ permissions: jobs: desktop: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 @@ -60,7 +61,8 @@ jobs: --no-restore android: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-todoapp-blazor-wasm.yml b/.github/workflows/build-samples-todoapp-blazor-wasm.yml index 9fff455..9b0aed1 100644 --- a/.github/workflows/build-samples-todoapp-blazor-wasm.yml +++ b/.github/workflows/build-samples-todoapp-blazor-wasm.yml @@ -19,7 +19,8 @@ permissions: jobs: build: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-todoapp-maui.yml b/.github/workflows/build-samples-todoapp-maui.yml index 40b4ccd..2feb81e 100644 --- a/.github/workflows/build-samples-todoapp-maui.yml +++ b/.github/workflows/build-samples-todoapp-maui.yml @@ -29,7 +29,8 @@ permissions: jobs: android: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-todoapp-mvc.yml b/.github/workflows/build-samples-todoapp-mvc.yml index 3650820..369e206 100644 --- a/.github/workflows/build-samples-todoapp-mvc.yml +++ b/.github/workflows/build-samples-todoapp-mvc.yml @@ -19,7 +19,8 @@ permissions: jobs: build: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-todoapp-tutorial.yml b/.github/workflows/build-samples-todoapp-tutorial.yml index 0ef0a9e..e68a979 100644 --- a/.github/workflows/build-samples-todoapp-tutorial.yml +++ b/.github/workflows/build-samples-todoapp-tutorial.yml @@ -22,7 +22,8 @@ permissions: jobs: build-serverapp: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples-todoapp-uno.yml b/.github/workflows/build-samples-todoapp-uno.yml index 06eda0e..6f413ff 100644 --- a/.github/workflows/build-samples-todoapp-uno.yml +++ b/.github/workflows/build-samples-todoapp-uno.yml @@ -30,7 +30,8 @@ permissions: jobs: android: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 @@ -144,7 +145,8 @@ jobs: --no-restore browserwasm: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 @@ -168,7 +170,8 @@ jobs: --no-restore desktop: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Checkout Repository uses: actions/checkout@v7 diff --git a/.github/workflows/build-samples.yml b/.github/workflows/build-samples.yml index 1fb39ae..bec8f5d 100644 --- a/.github/workflows/build-samples.yml +++ b/.github/workflows/build-samples.yml @@ -55,7 +55,8 @@ jobs: - todoapp-windows - todoapp-maui - todoapp-uno - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 steps: - name: Check sample build results run: | diff --git a/.github/workflows/build-template.yml b/.github/workflows/build-template.yml index 90526d4..d89702c 100644 --- a/.github/workflows/build-template.yml +++ b/.github/workflows/build-template.yml @@ -26,7 +26,8 @@ permissions: jobs: build: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 permissions: pull-requests: write contents: read @@ -166,7 +167,8 @@ jobs: (github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/')) }} needs: [ sign ] environment: nuget-release-gate - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 permissions: id-token: write contents: read diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index 762b082..6ccca4e 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -17,7 +17,8 @@ permissions: jobs: stale: - runs-on: ubuntu-latest + # Pinned to ubuntu-26.04 (not a floating label) so the runner image only changes when we choose. + runs-on: ubuntu-26.04 permissions: issues: write pull-requests: write