From 5406d64ab544dff8381f1fdeb661499c29690411 Mon Sep 17 00:00:00 2001 From: Afonso Dutra Nogueira Filho Date: Fri, 20 Feb 2026 20:21:35 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Upgrade=20all=20workflows=20to?= =?UTF-8?q?=20.NET=2010=20and=20verify=20tokens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Major Updates: - Upgrade all workflows from .NET 8.0.x to .NET 10.0.x - Update test frameworks to use net10.0 - Verify token usage across all workflows Token Verification: ✅ NUGET_TOKEN - Correctly configured in publish-all.yml ✅ SONAR_TOKEN - Correctly configured in code-quality.yml & security-scan.yml ✅ SNYK_TOKEN - Correctly configured in code-quality.yml & security-scan.yml ✅ GITHUB_TOKEN - Used for checkout and PR operations ✅ PAT_TOKEN - Configured as fallback for auto-PR workflows Workflows Updated: - ci-build-test.yml: Build & test with .NET 10 - code-quality.yml: Qodana & SonarQube with .NET 10 - security-scan.yml: Snyk & security scans with .NET 10 - auto-pr-from-main.yml: Dependency updates with .NET 10 - publish-all.yml: NuGet publishing with .NET 10 🎯 All workflows now use .NET 10 with correct token configuration! --- .github/workflows/auto-pr-from-main.yml | 4 ++-- .github/workflows/ci-build-test.yml | 8 ++++---- .github/workflows/code-quality.yml | 6 +++--- .github/workflows/publish-all.yml | 2 +- .github/workflows/security-scan.yml | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-pr-from-main.yml b/.github/workflows/auto-pr-from-main.yml index d8b3fb9..7b4b412 100644 --- a/.github/workflows/auto-pr-from-main.yml +++ b/.github/workflows/auto-pr-from-main.yml @@ -29,7 +29,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: � Check for NuGet Updates run: | @@ -147,7 +147,7 @@ jobs: - name: �️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: 🔒 Check for Security Updates run: | diff --git a/.github/workflows/ci-build-test.yml b/.github/workflows/ci-build-test.yml index fddd672..f110e1d 100644 --- a/.github/workflows/ci-build-test.yml +++ b/.github/workflows/ci-build-test.yml @@ -12,12 +12,12 @@ on: types: [opened, synchronize, reopened, closed] env: - DOTNET_VERSION: "8.0.x" + DOTNET_VERSION: "10.0.x" jobs: # Build Metar Decoder build-metar: - name: Build Metar Decoder (.NET 8) + name: Build Metar Decoder (.NET 10) runs-on: ubuntu-latest steps: @@ -58,7 +58,7 @@ jobs: --results-directory TestResults \ --collect:"XPlat Code Coverage" \ --verbosity normal \ - --framework net8.0 + --framework net10.0 - name: Run TAF Tests run: | @@ -69,7 +69,7 @@ jobs: --results-directory TestResults \ --collect:"XPlat Code Coverage" \ --verbosity normal \ - --framework net8.0 + --framework net10.0 - name: Upload Test Results uses: actions/upload-artifact@v4 diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index bdc8bad..9adafd1 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -61,7 +61,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: ☕ Set up JDK 17 uses: actions/setup-java@v5 @@ -124,7 +124,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: 🔧 Restore Dependencies run: dotnet restore MetarDecoder.sln --ignore-failed-sources @@ -203,7 +203,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: 🔧 Restore Dependencies run: dotnet restore MetarDecoder.sln --ignore-failed-sources diff --git a/.github/workflows/publish-all.yml b/.github/workflows/publish-all.yml index 2697edd..91ab12b 100644 --- a/.github/workflows/publish-all.yml +++ b/.github/workflows/publish-all.yml @@ -59,7 +59,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: 🔧 Clear NuGet cache run: dotnet nuget locals all --clear diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 3efbe49..65bf84e 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -54,7 +54,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: 🔧 Restore Dependencies run: dotnet restore MetarDecoder.sln --ignore-failed-sources @@ -89,7 +89,7 @@ jobs: - name: 🗄️ Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: "8.0.x" + dotnet-version: "10.0.x" - name: ☕ Set up JDK 17 uses: actions/setup-java@v5