From a8e7d98dbf31f4bcb1f77bcf3120b68a350b6759 Mon Sep 17 00:00:00 2001 From: "Charan sai Uggam (Accenture International Limited)" Date: Wed, 28 Oct 2026 17:37:35 +0530 Subject: [PATCH 1/3] Fix Codeql issues in mythos ICM --- .../release-extensions-distributedcache.yml | 35 ++++++++++++++++--- .github/workflows/release-sdk.yml | 35 ++++++++++++++++--- 2 files changed, 60 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-extensions-distributedcache.yml b/.github/workflows/release-extensions-distributedcache.yml index de7eef0..eb7a4fa 100644 --- a/.github/workflows/release-extensions-distributedcache.yml +++ b/.github/workflows/release-extensions-distributedcache.yml @@ -2,13 +2,18 @@ name: Release-Extension-DistributedCache on: workflow_dispatch: +permissions: + contents: read + jobs: - release: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: dotnet-version: 5.0.x - name: Install dependencies @@ -18,6 +23,26 @@ jobs: - name: Test run: dotnet test src/sdk/Extensions/Microsoft.Extensions.Caching.UnifiedRedisPlatform/Microsoft.Extensions.Caching.UnifiedRedisPlatform.csproj --no-restore --verbosity normal - name: Pack - run: dotnet pack src/sdk/Extensions/Microsoft.Extensions.Caching.UnifiedRedisPlatform/Microsoft.Extensions.Caching.UnifiedRedisPlatform.csproj + run: dotnet pack src/sdk/Extensions/Microsoft.Extensions.Caching.UnifiedRedisPlatform/Microsoft.Extensions.Caching.UnifiedRedisPlatform.csproj --output ./artifacts + - name: Upload package + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: nupkg + path: artifacts/*.nupkg + if-no-files-found: error + + # Publish runs without checking out repo code, so build/test-time code never has access to the NuGet key. + publish: + needs: build + runs-on: ubuntu-latest + environment: nuget-publish + steps: + - name: Download package + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: nupkg + path: artifacts - name: Publish - run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NuGet_API_Key }} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push "artifacts/*.nupkg" --api-key "$NUGET_API_KEY" --source https://api.nuget.org/v3/index.json + env: + NUGET_API_KEY: ${{ secrets.NuGet_API_Key }} diff --git a/.github/workflows/release-sdk.yml b/.github/workflows/release-sdk.yml index c170e8b..ddc73b4 100644 --- a/.github/workflows/release-sdk.yml +++ b/.github/workflows/release-sdk.yml @@ -2,13 +2,18 @@ name: Release on: workflow_dispatch: +permissions: + contents: read + jobs: - release: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: dotnet-version: 5.0.x - name: Install dependencies @@ -18,6 +23,26 @@ jobs: - name: Test run: dotnet test src/sdk/Core/Microsoft.UnifiedRedisPlatform.Core.csproj --no-restore --verbosity normal - name: Pack - run: dotnet pack src/sdk/Core/Microsoft.UnifiedRedisPlatform.Core.csproj + run: dotnet pack src/sdk/Core/Microsoft.UnifiedRedisPlatform.Core.csproj --output ./artifacts + - name: Upload package + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: nupkg + path: artifacts/*.nupkg + if-no-files-found: error + + # Publish runs without checking out repo code, so build/test-time code never has access to the NuGet key. + publish: + needs: build + runs-on: ubuntu-latest + environment: nuget-publish + steps: + - name: Download package + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: nupkg + path: artifacts - name: Publish - run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NuGet_API_Key }} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push "artifacts/*.nupkg" --api-key "$NUGET_API_KEY" --source https://api.nuget.org/v3/index.json + env: + NUGET_API_KEY: ${{ secrets.NuGet_API_Key }} From 9d83751bdfcf4e0d0404f64c739a4c8f6d133ab3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Oct 2026 07:29:04 +0000 Subject: [PATCH 2/3] Fix build-test-apps SDK compatibility Co-authored-by: charansai143 <48173750+charansai143@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c4d01b..a849be4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,9 +40,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.x + dotnet-version: 10.0.x - name: Restore dependencies (TestConsoleCore.SDK) run: dotnet restore src/tests/Microsoft.UnifiedRedisPlatform.TestApps/TestConsoleCore.SDK/Microsoft.UnifiedRedisPlatform.TestConsoleCore.SDK.csproj - name: Build (TestConsoleCore.SDK) From a8afe6c09452de8a39ab1e220624c7e3ecc14a05 Mon Sep 17 00:00:00 2001 From: "Charan sai Uggam (Accenture International Limited)" Date: Thu, 29 Oct 2026 13:39:13 +0530 Subject: [PATCH 3/3] Fix build issue in pipeline --- .github/workflows/ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c4d01b..4a02182 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,11 @@ jobs: build-code-sdk: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore src/sdk/Microsoft.UnifiedRedisPlatform.SDK.sln - name: Build @@ -25,11 +25,11 @@ jobs: build-service: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 3.1.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore src/service/Microsoft.UnifiedRedisPlatform.Service/Microsoft.UnifiedRedisPlatform.Service.sln - name: Build @@ -38,11 +38,11 @@ jobs: build-test-apps: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.x + dotnet-version: 8.0.x - name: Restore dependencies (TestConsoleCore.SDK) run: dotnet restore src/tests/Microsoft.UnifiedRedisPlatform.TestApps/TestConsoleCore.SDK/Microsoft.UnifiedRedisPlatform.TestConsoleCore.SDK.csproj - name: Build (TestConsoleCore.SDK)