From 2674c377eb24c50f87467a4d0a3144a3e91433f0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 13 Oct 2026 20:37:36 +0000 Subject: [PATCH] ci: pin runner images (ubuntu-24.04, windows-2025) Co-authored-by: Artur B. --- .github/workflows/ci.yml | 22 +++++++++++----------- .github/workflows/publish-nuget.yml | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 505fae2..bb1a474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,14 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-24.04, windows-2025] runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup .NET SDK - uses: actions/setup-dotnet@v6 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: global-json-file: global.json @@ -40,7 +40,7 @@ jobs: run: dotnet restore --locked-mode - name: Verify formatting - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-24.04' run: dotnet format --verify-no-changes --verbosity diagnostic - name: Build Release @@ -91,7 +91,7 @@ jobs: fi - name: Enforce line coverage threshold - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-24.04' shell: bash run: | python3 <<'PY' @@ -149,14 +149,14 @@ jobs: PY - name: Pack - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-24.04' run: | mkdir -p artifacts/packages dotnet pack -c Release --no-build -o artifacts/packages - name: Upload artifacts - if: matrix.os == 'ubuntu-latest' - uses: actions/upload-artifact@v7 + if: matrix.os == 'ubuntu-24.04' + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: packages-and-tests path: | @@ -165,10 +165,10 @@ jobs: dependency-review: if: github.event_name == 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read pull-requests: write steps: - - uses: actions/checkout@v7 - - uses: actions/dependency-review-action@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 16594fd..0d61ba4 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -19,12 +19,12 @@ env: jobs: publish: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Resolve version id: ver @@ -40,7 +40,7 @@ jobs: echo "Publishing version $VERSION" - name: Setup .NET SDK - uses: actions/setup-dotnet@v6 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: global-json-file: global.json