From 837c4bcb4077ffe70d0583adb79d2042c691c6e1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 09:50:35 +0000 Subject: [PATCH 1/2] Initial plan From 8ffbbb618a8af0fc6695f5ecae7429d41ef93db3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 09:52:51 +0000 Subject: [PATCH 2/2] Fix packagesToPush escaping and add any-RID guard to package-unsigned validation Co-authored-by: mkrueger <341098+mkrueger@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/CosmosDBShell/sessions/0e5944c6-6775-4f22-af50-756cb505882f --- .github/workflows/package-unsigned.yml | 7 +++++++ .pipelines/CosmosDB-Shell-Official.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-unsigned.yml b/.github/workflows/package-unsigned.yml index 515a009..ce2612b 100644 --- a/.github/workflows/package-unsigned.yml +++ b/.github/workflows/package-unsigned.yml @@ -170,6 +170,13 @@ jobs: exit 1 } + $anyMatches = Get-ChildItem -Path (Join-Path $pkgDir 'CosmosDBShell.any.*.nupkg') -ErrorAction SilentlyContinue + if ($anyMatches -and $anyMatches.Count -gt 0) { + $names = $anyMatches | ForEach-Object { $_.Name } | Sort-Object + Write-Error "Unexpected any-RID package(s) found: $($names -join ', ')" + exit 1 + } + - name: Upload test results if: always() uses: actions/upload-artifact@v4 diff --git a/.pipelines/CosmosDB-Shell-Official.yml b/.pipelines/CosmosDB-Shell-Official.yml index 561a89a..35d41e4 100644 --- a/.pipelines/CosmosDB-Shell-Official.yml +++ b/.pipelines/CosmosDB-Shell-Official.yml @@ -518,7 +518,7 @@ extends: eq('${{ parameters.publishNuget }}', 'true')) inputs: command: "push" - packagesToPush: "$(Build.SourcesDirectory)\\out\\nupkg\\CosmosDBShell.$(CosmosDBShell_PackageVersion).nupkg" + packagesToPush: "$(Build.SourcesDirectory)\out\nupkg\CosmosDBShell.$(CosmosDBShell_PackageVersion).nupkg" nuGetFeedType: "internal" publishVstsFeed: "CosmosDB/CosmosDBShell" allowPackageConflicts: true