From 07ae2168f6aec7c403f4c9943dbe86f2751fd1fe Mon Sep 17 00:00:00 2001 From: John Duprey Date: Fri, 24 Apr 2026 12:54:10 -0400 Subject: [PATCH 1/3] fix: update workflow files to include modulebuilder --- .github/workflows/publish_release.yml | 11 +++++++++++ .github/workflows/upload_dev.yml | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index ed540c3ac7143..90bacad53a719 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -95,6 +95,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Create version.json with version and commit hash + - name: Create version.json + run: | + VERSION=$(cat version_latest.txt | tr -d '[:space:]') + SHORT_SHA="${GITHUB_SHA::7}" + echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json + + - name: Build and stage modules + shell: pwsh + run: ./Tools/Build-DevApiModules.ps1 + # Create ZIP File in a New Source Directory - name: Prepare and Zip Release Files if: env.tag_exists == 'false' diff --git a/.github/workflows/upload_dev.yml b/.github/workflows/upload_dev.yml index f01108f3c68b8..145ca2b8fcda5 100644 --- a/.github/workflows/upload_dev.yml +++ b/.github/workflows/upload_dev.yml @@ -25,6 +25,10 @@ jobs: SHORT_SHA="${GITHUB_SHA::7}" echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json + - name: Build and stage modules + shell: pwsh + run: ./Tools/Build-DevApiModules.ps1 + # Create ZIP File in a New Source Directory - name: Prepare and Zip Release Files run: | From e9017f605b677d8bc0fc5b0d1439e04276f2b17a Mon Sep 17 00:00:00 2001 From: Zacgoose <107489668+Zacgoose@users.noreply.github.com> Date: Sat, 25 Apr 2026 00:58:11 +0800 Subject: [PATCH 2/3] Fixes manual pagination --- Modules/CIPPCore/Public/GraphHelper/New-GraphGetRequest.ps1 | 2 +- .../HTTP Functions/CIPP/Core/Invoke-ListGraphRequest.ps1 | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Modules/CIPPCore/Public/GraphHelper/New-GraphGetRequest.ps1 b/Modules/CIPPCore/Public/GraphHelper/New-GraphGetRequest.ps1 index 22319472885f5..b00000f7f90a9 100644 --- a/Modules/CIPPCore/Public/GraphHelper/New-GraphGetRequest.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/New-GraphGetRequest.ps1 @@ -107,7 +107,7 @@ function New-GraphGetRequest { } else { if ($Data.PSObject.Properties.Name -contains 'value') { $data.value } else { $Data } if ($noPagination -eq $true) { - if ($Caller -eq 'Get-GraphRequestList') { + if ($Caller -eq 'Get-GraphRequestList' -and $data.'@odata.nextLink') { @{ 'nextLink' = $data.'@odata.nextLink' } } $nextURL = $null diff --git a/Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListGraphRequest.ps1 b/Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListGraphRequest.ps1 index 9f3335c108edc..aed9bf3143d85 100644 --- a/Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListGraphRequest.ps1 +++ b/Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListGraphRequest.ps1 @@ -159,9 +159,13 @@ function Invoke-ListGraphRequest { if ($NextLink -and $Request.Query.TenantFilter -ne 'AllTenants') { Write-Host "NextLink: $NextLink" $Metadata['nextLink'] = $NextLink + } else { + $Metadata.Remove('nextLink') } - # Remove nextLink trailing object only if it’s the last item + # Remove nextLink trailing object only if it's the last item $Results = $Results | Where-Object { $_.PSObject.Properties.Name -notcontains 'nextLink' } + } else { + $Metadata.Remove('nextLink') } if ($Request.Query.ListProperties) { $Columns = ($Results | Select-Object -First 1).PSObject.Properties.Name From 2a361a84da88d287223e1ed0c81cc2196fe8282a Mon Sep 17 00:00:00 2001 From: Zacgoose <107489668+Zacgoose@users.noreply.github.com> Date: Sat, 25 Apr 2026 01:01:05 +0800 Subject: [PATCH 3/3] hotfix --- host.json | 2 +- version_latest.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/host.json b/host.json index 17268cf44dcc4..e5c89cc14cb2a 100644 --- a/host.json +++ b/host.json @@ -16,7 +16,7 @@ "distributedTracingEnabled": false, "version": "None" }, - "defaultVersion": "10.3.1", + "defaultVersion": "10.4.1", "versionMatchStrategy": "Strict", "versionFailureStrategy": "Fail" } diff --git a/version_latest.txt b/version_latest.txt index 816c0711afb06..da772b97257fd 100644 --- a/version_latest.txt +++ b/version_latest.txt @@ -1 +1 @@ -10.4.0 +10.4.1