From a063116a20b6ad1182b87314f4f223c13f9b4b38 Mon Sep 17 00:00:00 2001 From: Chris McKee Date: Thu, 2 Jan 2025 18:41:00 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20manually=20set=20.net=20version=20in=20a?= =?UTF-8?q?ctions=20=F0=9F=99=84=20https://github.com/actions/setup-dotnet?= =?UTF-8?q?/issues/562?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-build.yml | 4 +++- .github/workflows/ci-manual-build-test-sign.yml | 2 ++ .github/workflows/codeql-analysis.yml | 4 +++- .github/workflows/upload-coverage-report.yml | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index d3e6acc..b84b82e 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -26,7 +26,7 @@ env: jobs: build: name: Build and Test - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 'Harden Runner' uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 @@ -40,6 +40,8 @@ jobs: - name: 'Setup .NET SDK' uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0 + with: + dotnet-version: 9.0.x - name: 'Restore external dependencies' run: dotnet restore diff --git a/.github/workflows/ci-manual-build-test-sign.yml b/.github/workflows/ci-manual-build-test-sign.yml index 4817025..d968c2f 100644 --- a/.github/workflows/ci-manual-build-test-sign.yml +++ b/.github/workflows/ci-manual-build-test-sign.yml @@ -45,6 +45,8 @@ jobs: - name: 'Setup .NET SDK' uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0 + with: + dotnet-version: 9.0.x - name: 'Build' run: dotnet build --configuration Release --property:PublicRelease=${{ inputs.public_release }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7966862..6f6b5dc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -34,7 +34,7 @@ env: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: actions: read contents: read @@ -60,6 +60,8 @@ jobs: - name: 'Setup .NET SDK' uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0 + with: + dotnet-version: 9.0.x # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/upload-coverage-report.yml b/.github/workflows/upload-coverage-report.yml index 1072514..9a67098 100644 --- a/.github/workflows/upload-coverage-report.yml +++ b/.github/workflows/upload-coverage-report.yml @@ -10,7 +10,7 @@ on: jobs: prCoverageComment: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: pull-requests: write if: