Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
b8f0d7d
Update Invoke-ExecAppInsightsQuery.ps1
JohnDuprey Dec 5, 2025
612ae8a
Refactor Application Insights initialization and logging
JohnDuprey Dec 5, 2025
d612dc6
Update Get-ApplicationInsightsQuery.ps1
JohnDuprey Dec 5, 2025
ad7cf96
changes to drift management for improved performance
KelvinTegelaar Dec 5, 2025
c96e480
skip requests for tenants that don't have licenses
KelvinTegelaar Dec 5, 2025
f386254
extra logging
KelvinTegelaar Dec 5, 2025
9f43679
more temporary logging
KelvinTegelaar Dec 5, 2025
746e047
Add temporary logging to building tenant data.
KelvinTegelaar Dec 5, 2025
184122c
Add logging configuration to host.json
JohnDuprey Dec 5, 2025
4b27a57
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
JohnDuprey Dec 5, 2025
bf01bd9
change logging and add trigger metadata to test
JohnDuprey Dec 5, 2025
15f0a36
Refactor context storage to use AsyncLocal for thread safety
JohnDuprey Dec 5, 2025
04b4dd3
performance fix
KelvinTegelaar Dec 5, 2025
c1cdf6c
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 5, 2025
87af0e5
fix issue
KelvinTegelaar Dec 5, 2025
65592f7
revert to original
KelvinTegelaar Dec 5, 2025
2b848db
localized logging
KelvinTegelaar Dec 5, 2025
bd6a102
localized logging
KelvinTegelaar Dec 5, 2025
37ef372
Cast TemplateId to string in standards compare field
JohnDuprey Dec 5, 2025
f42343e
remove redundant code
KelvinTegelaar Dec 5, 2025
8bfec50
temporary logging added
KelvinTegelaar Dec 5, 2025
233b0c0
added logging
KelvinTegelaar Dec 5, 2025
d65e1ad
Merge branch 'KelvinTegelaar:master' into master
lacymooretx Dec 5, 2025
3d522d3
Fix PWPush Pro account dropdown not populating
lacymooretx Dec 5, 2025
5990940
fix import
JohnDuprey Dec 5, 2025
07e14d4
remove logging
KelvinTegelaar Dec 5, 2025
10b0bd8
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 5, 2025
e973378
Remove logging
KelvinTegelaar Dec 6, 2025
a60bd84
temporary reset of logging
KelvinTegelaar Dec 6, 2025
4c78da1
Validate app IDs in CA policy applications
JohnDuprey Dec 6, 2025
8c5c734
Potential speedfix for large tenants and
KelvinTegelaar Dec 6, 2025
271c3b8
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 6, 2025
fe45e22
profiling
KelvinTegelaar Dec 6, 2025
775b966
go
KelvinTegelaar Dec 6, 2025
840b827
Measure data
KelvinTegelaar Dec 6, 2025
99e8463
profiling
KelvinTegelaar Dec 6, 2025
97b1170
added logging
KelvinTegelaar Dec 6, 2025
c369f5a
Performance tweaks
KelvinTegelaar Dec 6, 2025
464ff61
Fixed
KelvinTegelaar Dec 6, 2025
1777132
change in tag processing
KelvinTegelaar Dec 6, 2025
2beb9d4
removed some data
KelvinTegelaar Dec 6, 2025
b2c84fb
Fix bug
KelvinTegelaar Dec 6, 2025
9d86c86
added better paging to drift
KelvinTegelaar Dec 6, 2025
6b7b5ec
Paging
KelvinTegelaar Dec 6, 2025
971e179
drift timings
KelvinTegelaar Dec 6, 2025
62e1f12
timings
KelvinTegelaar Dec 6, 2025
f3ebe7a
extra data
KelvinTegelaar Dec 6, 2025
5ba5355
extra logging
KelvinTegelaar Dec 6, 2025
6cab31a
drift profiling
KelvinTegelaar Dec 7, 2025
21f2133
tenantgroups
KelvinTegelaar Dec 7, 2025
2b67016
caching
KelvinTegelaar Dec 7, 2025
4465517
remove profiling
KelvinTegelaar Dec 7, 2025
b066860
add rowkey filter
KelvinTegelaar Dec 7, 2025
bea0f5d
logging level back to off, custom events only
KelvinTegelaar Dec 7, 2025
2bf21ab
tempoary backup profiling
KelvinTegelaar Dec 7, 2025
b1499bb
Updates
KelvinTegelaar Dec 7, 2025
bc2981d
Add ModuleBuilder support for CIPPCore module
JohnDuprey Dec 7, 2025
9bde0b9
Update build.psd1 to include additional copy paths
JohnDuprey Dec 7, 2025
91dd4ae
fix copy paths
JohnDuprey Dec 7, 2025
87556a8
Refactor data file paths and update build output
JohnDuprey Dec 7, 2025
9d07630
profiling backup
KelvinTegelaar Dec 7, 2025
f809689
fixes
KelvinTegelaar Dec 7, 2025
331a0c7
fixes
KelvinTegelaar Dec 7, 2025
bf4b65c
measure changes
KelvinTegelaar Dec 7, 2025
76df2cf
more measuring
KelvinTegelaar Dec 7, 2025
8804685
improve CA speeds
KelvinTegelaar Dec 7, 2025
9dc9a6f
Add or update the Azure App Service build and deployment workflow config
KelvinTegelaar Dec 8, 2025
5461d97
Add or update the Azure App Service build and deployment workflow config
KelvinTegelaar Dec 8, 2025
cd1f2da
profiling audit logs
KelvinTegelaar Dec 8, 2025
b1b18dc
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 8, 2025
5d9c443
Fix: Remove some Waiting = $true to possibly fix allTenants loading i…
kris6673 Dec 8, 2025
d0df3ab
added profiling
KelvinTegelaar Dec 8, 2025
e2038c2
change to whereobject over tablescan.
KelvinTegelaar Dec 8, 2025
d7c97b6
add logging
JohnDuprey Dec 8, 2025
73e51f8
Feat: Add QuarantineReleaseRequests alert for handling quarantine rel…
kris6673 Dec 8, 2025
af7d941
WORD WORD WORD WORD WORD WORD
kris6673 Dec 8, 2025
f734c3a
app approval
KelvinTegelaar Dec 8, 2025
8d7ea64
paging
KelvinTegelaar Dec 8, 2025
4cc42c5
Mailbox Auditing changes
KelvinTegelaar Dec 8, 2025
4b8a24b
Merge pull request #1733 from kris6673/QuarantineReleaseRequests
KelvinTegelaar Dec 8, 2025
026f259
temp change to test app logging retention
KelvinTegelaar Dec 8, 2025
2e06bbb
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 8, 2025
23ae551
Improve DMARC record handling for multiple domains
JohnDuprey Dec 8, 2025
c10da45
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
JohnDuprey Dec 8, 2025
52b81aa
Improve error handling in New-GraphGetRequest
JohnDuprey Dec 8, 2025
161ff44
recommended change by thiago
KelvinTegelaar Dec 9, 2025
5d4d0c4
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 9, 2025
e142a97
Merge pull request #1730 from lacymooretx/fix/pwpush-pro-field-mismatch
KelvinTegelaar Dec 9, 2025
671853f
Merge pull request #1726 from Zacgoose/fix-audit-log-rules-search
KelvinTegelaar Dec 9, 2025
c3ae8fc
Add User-Agent header with CIPP version to Graph requests
JohnDuprey Dec 9, 2025
c51c9e3
Preserve Package property in template operations
JohnDuprey Dec 9, 2025
fbe994f
Delete master_cippkdsva.yml
JohnDuprey Dec 9, 2025
7f3d7e0
Add SHA hash checks to tenant template library
JohnDuprey Dec 9, 2025
2a1ffb7
update metadata
KelvinTegelaar Dec 9, 2025
21f8cee
Enhance template library logic
JohnDuprey Dec 9, 2025
aeeab5a
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
JohnDuprey Dec 9, 2025
7fdce16
Improve error handling in activity orchestration
JohnDuprey Dec 9, 2025
ebfd5ef
Update CippEntrypoints.psm1
JohnDuprey Dec 9, 2025
7f1e787
entrypoint change
KelvinTegelaar Dec 9, 2025
d100ce3
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 9, 2025
45580d5
Fix property assignment and config validation in orchestrators
JohnDuprey Dec 9, 2025
5db3bd7
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
JohnDuprey Dec 9, 2025
84df20a
Improve error handling in orchestration and activity triggers
JohnDuprey Dec 9, 2025
bd2ce60
test
KelvinTegelaar Dec 9, 2025
75c9291
Add default domain name
KelvinTegelaar Dec 9, 2025
c240553
rage
KelvinTegelaar Dec 9, 2025
24bb9bc
changing to extract logs instead of long standing operations
KelvinTegelaar Dec 10, 2025
50eae1a
added data for tracking
KelvinTegelaar Dec 10, 2025
85c61ce
auditlog changes
KelvinTegelaar Dec 10, 2025
3eb2fb2
reset priority
KelvinTegelaar Dec 10, 2025
bbd4241
performance improvements
KelvinTegelaar Dec 10, 2025
ccf6357
add stopwatches for checking timings
KelvinTegelaar Dec 10, 2025
c017e15
prevent lockout issues if refresh token expires or ca changes
JohnDuprey Dec 10, 2025
61f0943
see if filters improve timing
KelvinTegelaar Dec 10, 2025
ec03dd2
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 10, 2025
8308833
remove seconds
KelvinTegelaar Dec 10, 2025
4c008ed
add temporary profiling
KelvinTegelaar Dec 10, 2025
1424561
removing timings, updating processing
KelvinTegelaar Dec 10, 2025
b9bfbe2
corrected exclude
KelvinTegelaar Dec 10, 2025
545f9f7
temp post
KelvinTegelaar Dec 11, 2025
b805ce6
fixes
KelvinTegelaar Dec 11, 2025
57ad95c
Enhance alert comment handling in scheduled command
JohnDuprey Dec 11, 2025
498866b
Feat: Support JIT admin for guest users
kris6673 Dec 11, 2025
e80f04a
Feat: Add auto-archiving configuration standard
kris6673 Dec 11, 2025
6d7ded5
Extra logging
KelvinTegelaar Dec 11, 2025
caae09d
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 11, 2025
cc48ec1
fix data
KelvinTegelaar Dec 11, 2025
f176e99
cleanup compiled module
JohnDuprey Dec 11, 2025
d5e86dd
Update .gitignore
JohnDuprey Dec 11, 2025
39abb7e
Add error handling to group template parsing
JohnDuprey Dec 11, 2025
80016c0
Compress JSON output in New-CIPPIntuneTemplate
JohnDuprey Dec 11, 2025
899597c
logs
KelvinTegelaar Dec 12, 2025
c12b7fb
add a raw json print from the return
KelvinTegelaar Dec 12, 2025
da06e49
Refactor Get-CIPPTimerFunctions and clean up stale entries
JohnDuprey Dec 12, 2025
5e80d13
Add time settings management for function app
JohnDuprey Dec 12, 2025
2e320e3
Update Invoke-ExecTimeSettings.ps1
JohnDuprey Dec 12, 2025
e476fa3
add invocation ids
KelvinTegelaar Dec 12, 2025
24ba12e
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 12, 2025
73d5ab2
license check
KelvinTegelaar Dec 12, 2025
f299691
Reduce batch size from 1000 to 500 in orchestrator
JohnDuprey Dec 12, 2025
2394d85
Cache directory lookups to reduce API calls
JohnDuprey Dec 12, 2025
3f6104d
Use WEBSITE_AUTH_V2_CONFIG_JSON for auth settings if available
JohnDuprey Dec 12, 2025
106272f
Update CippEntrypoints.psm1
JohnDuprey Dec 12, 2025
b0c96a1
Update Get-CippApiAuth.ps1
JohnDuprey Dec 12, 2025
91d3738
New tenant checks in get standards then executing.
KelvinTegelaar Dec 12, 2025
0bfa456
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 12, 2025
d241d67
Add bulk support for standards
KelvinTegelaar Dec 13, 2025
2766531
Refactor audit log ingestion to use orchestrated activities
JohnDuprey Dec 13, 2025
633883e
Initial plan
Copilot Dec 8, 2025
6abaf95
Implement AllTenants filtering logic for user default templates
Copilot Dec 8, 2025
0a0352a
Fix comparison operator consistency in user defaults filter
Copilot Dec 8, 2025
e9b3495
Add includeAllTenants flag to control AllTenants template filtering
Copilot Dec 13, 2025
7d2bf77
Simplify includeAllTenants boolean logic
Copilot Dec 13, 2025
4345257
Fix string comparison for includeAllTenants parameter
Copilot Dec 13, 2025
b6c5c74
Refactor standards orchestration to batch activities
JohnDuprey Dec 13, 2025
2ce4011
Fix missing $ in $top query parameters for Intune endpoints
JohnDuprey Dec 13, 2025
cb18d7a
Add includeAllTenants flag to user defaults listing
Zacgoose Dec 13, 2025
80af0d8
Merge pull request #1731 from Zacgoose/copilot/update-user-defaults-l…
KelvinTegelaar Dec 13, 2025
1e1cdf4
Merge pull request #1732 from kris6673/queues
KelvinTegelaar Dec 13, 2025
d118bcc
Merge pull request #1736 from kris6673/jit-admin
KelvinTegelaar Dec 13, 2025
1354aa6
Merge pull request #1737 from kris6673/AutoArchive
KelvinTegelaar Dec 13, 2025
a7c767f
Add Reference field to scheduled task handling
Zacgoose Dec 13, 2025
14f242a
extra ref message
Zacgoose Dec 13, 2025
7f2cab6
Merge branch 'dev' into update-tenant-user-templates
Zacgoose Dec 13, 2025
507dd34
formatting
Zacgoose Dec 13, 2025
3ae6748
formatting
Zacgoose Dec 13, 2025
2b68fc7
some added logging to see the batch
KelvinTegelaar Dec 13, 2025
f22afac
added some write hosts
KelvinTegelaar Dec 13, 2025
f7176c8
clear return to see where things fail
KelvinTegelaar Dec 13, 2025
5ab8876
CIPP-API
KelvinTegelaar Dec 13, 2025
2f6ac75
checking input obj
KelvinTegelaar Dec 13, 2025
bf2c2c0
feat: Add Get-CIPPAlertGlobalAdminAllowList function and correspondin…
MWG-Logan Dec 13, 2025
edfe33a
chore: Enhance tests for Get-CIPPAlertGlobalAdminAllowList with error…
MWG-Logan Dec 13, 2025
802701e
Merge pull request #1741 from MWG-Logan/ga-list-alert
KelvinTegelaar Dec 13, 2025
9165db4
fixes #5022
KelvinTegelaar Dec 13, 2025
3c75243
Refactor activity function waiting logic
JohnDuprey Dec 13, 2025
6f5a133
Fix standards aggregation logic in batch apply script
JohnDuprey Dec 13, 2025
20ba91b
Add reporting jit
KelvinTegelaar Dec 13, 2025
def80ca
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 13, 2025
f8dcaa7
Jit admin changes
KelvinTegelaar Dec 13, 2025
7150399
backup cleanup
KelvinTegelaar Dec 13, 2025
451c606
quick fix for #5070
KelvinTegelaar Dec 13, 2025
e3931e6
ExecDevicePasscodeAction
KelvinTegelaar Dec 14, 2025
983485b
minor logging updates
KelvinTegelaar Dec 14, 2025
3219a98
allow disabling of email
KelvinTegelaar Dec 14, 2025
a019449
disable all notifications instead
KelvinTegelaar Dec 14, 2025
f6cbc2a
Remove Az.KeyVault 6.3.1 module and add KeyVault secret cmdlets
Zacgoose Dec 14, 2025
dacfb38
Merge pull request #1739 from Zacgoose/update-tenant-user-templates
KelvinTegelaar Dec 14, 2025
4d5c105
Add Az identity token function
Dec 14, 2025
928abeb
Minor cleanup/speed improvements
Dec 14, 2025
3bd06d4
Fix #5044
KelvinTegelaar Dec 14, 2025
185a7f9
More explicit module imports
Dec 14, 2025
7a99763
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 14, 2025
5fc20af
Merge branch 'dev' into kv-replacement-test
Zacgoose Dec 14, 2025
b3aad3a
Add resource support to AzIdentityToken
Dec 14, 2025
0924d62
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
Dec 14, 2025
ca27d49
Merge pull request #1740 from Zacgoose/Reference-message-CA-and-Sched…
KelvinTegelaar Dec 14, 2025
06fc021
Replace function app subid lookup with function
Dec 15, 2025
5a82592
New-CIPPAzRestRequest
Dec 15, 2025
d74249a
this probably needs cleanup
Dec 15, 2025
50b5e54
Request change by many users - Drift alerting at lower rate.
KelvinTegelaar Dec 15, 2025
a10a744
rollback audit logs
JohnDuprey Dec 15, 2025
5121b3c
Add CreateGroups parameter to CAPolicy creation
JohnDuprey Dec 15, 2025
c97a113
Feat: Add MDM enrollment isMdmEnrollmentDuringRegistrationDisabled st…
kris6673 Dec 15, 2025
515f800
Merge pull request #1743 from kris6673/isMdmEnrollmentDuringRegistrat…
KelvinTegelaar Dec 15, 2025
02544e4
restore audit log search creation
JohnDuprey Dec 15, 2025
f6c627f
Refactor license overview and queue handling logic
JohnDuprey Dec 15, 2025
87d9cd6
Merge pull request #1742 from Zacgoose/kv-replacement-test
JohnDuprey Dec 15, 2025
d0870b3
Add detailed timing metrics to profile.ps1 startup
JohnDuprey Dec 15, 2025
523f433
Update Invoke-ListApiTest.ps1
JohnDuprey Dec 15, 2025
f035280
Update Invoke-ListApiTest.ps1
JohnDuprey Dec 15, 2025
448994e
test az query
JohnDuprey Dec 15, 2025
7d528ff
Update Resource Graph request to POST and set default content type
JohnDuprey Dec 15, 2025
ed46141
Update Invoke-ListApiTest.ps1
JohnDuprey Dec 15, 2025
eaed4f6
Update Invoke-ListApiTest.ps1
JohnDuprey Dec 15, 2025
9b270ec
automated onboarding changes
KelvinTegelaar Dec 16, 2025
3cca1f6
Add or update the Azure App Service build and deployment workflow config
KelvinTegelaar Dec 16, 2025
8f8933e
Refactor durable cleanup to use custom AzStorage helpers
JohnDuprey Dec 16, 2025
c664481
Refactor to use ARM REST for Function App and Key Vault ops
JohnDuprey Dec 16, 2025
19af37d
Remove Az.Accounts, Az.Functions, and Az.Storage v4/8 modules
JohnDuprey Dec 16, 2025
a7da0de
Remove AzContext autosave disabling and timing
JohnDuprey Dec 16, 2025
17203b2
Change auth settings retrieval order in Get-CippApiAuth
JohnDuprey Dec 16, 2025
4e6385b
Update Get-CippApiAuth.ps1
JohnDuprey Dec 16, 2025
1b34dd9
Add per-request user roles cache and improve timing logic
JohnDuprey Dec 16, 2025
cc3f2ab
Update Invoke-ListApiTest.ps1
JohnDuprey Dec 16, 2025
3e845ca
Add detailed HTTP request timing telemetry
JohnDuprey Dec 16, 2025
9684634
Add detailed profiling to access and user role checks
JohnDuprey Dec 16, 2025
f7325ff
remove modulebuilder steps
JohnDuprey Dec 16, 2025
e01b728
Switch timing logs from Write-Information to Write-Debug
JohnDuprey Dec 17, 2025
94c0207
Replace Write-Information with Write-Debug for logging
JohnDuprey Dec 17, 2025
41895aa
Add tag support to console logging messages
JohnDuprey Dec 17, 2025
825ff30
Add function permissions cache and build script
Zacgoose Dec 17, 2025
479bdae
Merge pull request #1747 from Zacgoose/access-speeeeed
JohnDuprey Dec 17, 2025
9512822
Add CFZTNA headers support to webhook alerts
JohnDuprey Dec 17, 2025
9ad27a5
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
JohnDuprey Dec 17, 2025
9d29876
switch to asapp for api configs
JohnDuprey Dec 17, 2025
b2b3b7b
Update Get-CIPPAzIdentityToken.ps1
JohnDuprey Dec 17, 2025
7424e39
fix table override when creating invites via the api
JohnDuprey Dec 17, 2025
5c4fe80
Add domain management entrypoints for tenants
JohnDuprey Dec 17, 2025
aa2d53a
Add step tracking and retries to API app setup
JohnDuprey Dec 17, 2025
4a74df8
cleanup
JohnDuprey Dec 17, 2025
48e0d18
Add PowerShell module build and caching to workflows
JohnDuprey Dec 17, 2025
d2ceae9
temp delete
KelvinTegelaar Dec 17, 2025
00e3d4a
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 17, 2025
ec53711
Rename cippcore
KelvinTegelaar Dec 17, 2025
350349e
Update workflow and add function metadata comments
JohnDuprey Dec 17, 2025
cd6df9f
version up
KelvinTegelaar Dec 17, 2025
5542d4c
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Dec 17, 2025
34e0715
Rollback audit logs to 8.7.2
JohnDuprey Dec 17, 2025
53f9ef8
Merge pull request #1748 from KelvinTegelaar/dev
KelvinTegelaar Dec 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 61 additions & 0 deletions .github/workflows/dev_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,67 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup PowerShell module cache
id: cacher
uses: actions/cache@v3
with:
path: "~/.local/share/powershell/Modules"
key: ${{ runner.os }}-ModuleBuilder

- name: Install ModuleBuilder
if: steps.cacher.outputs.cache-hit != 'true'
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module ModuleBuilder -AllowClobber -Force

- name: Build CIPPCore Module
shell: pwsh
run: |
$ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CIPPCore"
$OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output"

Write-Host "Building module from: $ModulePath"
Write-Host "Output directory: $OutputPath"

# Generate function permissions before replacing the source module
$ToolsPath = Join-Path $env:GITHUB_WORKSPACE "Tools"
$ScriptPath = Join-Path $ToolsPath "Build-FunctionPermissions.ps1"
pwsh -File $ScriptPath -ModulePath $ModulePath

# Build the module using ModuleBuilder
Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose

# Replace the source module with the built module
Remove-Item -Path $ModulePath -Recurse -Force
Copy-Item -Path (Join-Path $OutputPath "CIPPCore") -Destination $ModulePath -Recurse -Force

Write-Host "Module built and replaced successfully"

# Clean up output directory
Remove-Item -Path $OutputPath -Recurse -Force

- name: Build CippExtensions Module
shell: pwsh
run: |
$ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CippExtensions"
$OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output"

Write-Host "Building module from: $ModulePath"
Write-Host "Output directory: $OutputPath"

# Build the module using ModuleBuilder
Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose

# Replace the source module with the built module
Remove-Item -Path $ModulePath -Recurse -Force
Copy-Item -Path (Join-Path $OutputPath "CippExtensions") -Destination $ModulePath -Recurse -Force

Write-Host "Module built and replaced successfully"

# Clean up output directory
Remove-Item -Path $OutputPath -Recurse -Force

- name: Login to Azure
uses: azure/login@v2
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/dev_cippahmcc.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/dev_cippmpiii.yml

This file was deleted.

68 changes: 66 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
steps:
# Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

# Read and Trim Version
- name: Read and Trim Version
Expand Down Expand Up @@ -68,6 +70,68 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup PowerShell module cache
id: cacher
uses: actions/cache@v3
with:
path: "~/.local/share/powershell/Modules"
key: ${{ runner.os }}-ModuleBuilder

- name: Install ModuleBuilder
if: steps.cacher.outputs.cache-hit != 'true'
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module ModuleBuilder -AllowClobber -Force

- name: Build CIPPCore Module
shell: pwsh
run: |
$ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CIPPCore"
$OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output"

Write-Host "Building module from: $ModulePath"
Write-Host "Output directory: $OutputPath"

# Generate function permissions before replacing the source module
$ToolsPath = Join-Path $env:GITHUB_WORKSPACE "Tools"
$ScriptPath = Join-Path $ToolsPath "Build-FunctionPermissions.ps1"
pwsh -File $ScriptPath -ModulePath $ModulePath

# Build the module using ModuleBuilder
Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose

# Replace the source module with the built module
Remove-Item -Path $ModulePath -Recurse -Force
Copy-Item -Path (Join-Path $OutputPath "CIPPCore") -Destination $ModulePath -Recurse -Force

Write-Host "Module built and replaced successfully"

# Clean up output directory
Remove-Item -Path $OutputPath -Recurse -Force

- name: Build CippExtensions Module
shell: pwsh
run: |
$ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CippExtensions"
$OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output"

Write-Host "Building module from: $ModulePath"
Write-Host "Output directory: $OutputPath"

# Build the module using ModuleBuilder
Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose

# Replace the source module with the built module
Remove-Item -Path $ModulePath -Recurse -Force
Copy-Item -Path (Join-Path $OutputPath "CippExtensions") -Destination $ModulePath -Recurse -Force

Write-Host "Module built and replaced successfully"

# Clean up output directory
Remove-Item -Path $OutputPath -Recurse -Force


# Create ZIP File in a New Source Directory
- name: Prepare and Zip Release Files
if: env.tag_exists == 'false'
Expand All @@ -91,4 +155,4 @@ jobs:
container_name: cipp-api
source_folder: src/releases/
destination_folder: /
delete_if_exists: true
delete_if_exists: true
64 changes: 63 additions & 1 deletion .github/workflows/upload_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,69 @@ jobs:
steps:
# Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup PowerShell module cache
id: cacher
uses: actions/cache@v3
with:
path: "~/.local/share/powershell/Modules"
key: ${{ runner.os }}-ModuleBuilder

- name: Install ModuleBuilder
if: steps.cacher.outputs.cache-hit != 'true'
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module ModuleBuilder -AllowClobber -Force

- name: Build CIPPCore Module
shell: pwsh
run: |
$ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CIPPCore"
$OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output"

Write-Host "Building module from: $ModulePath"
Write-Host "Output directory: $OutputPath"

# Generate function permissions before replacing the source module
$ToolsPath = Join-Path $env:GITHUB_WORKSPACE "Tools"
$ScriptPath = Join-Path $ToolsPath "Build-FunctionPermissions.ps1"
pwsh -File $ScriptPath -ModulePath $ModulePath

# Build the module using ModuleBuilder
Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose

# Replace the source module with the built module
Remove-Item -Path $ModulePath -Recurse -Force
Copy-Item -Path (Join-Path $OutputPath "CIPPCore") -Destination $ModulePath -Recurse -Force

Write-Host "Module built and replaced successfully"

# Clean up output directory
Remove-Item -Path $OutputPath -Recurse -Force

- name: Build CippExtensions Module
shell: pwsh
run: |
$ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CippExtensions"
$OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output"

Write-Host "Building module from: $ModulePath"
Write-Host "Output directory: $OutputPath"

# Build the module using ModuleBuilder
Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose

# Replace the source module with the built module
Remove-Item -Path $ModulePath -Recurse -Force
Copy-Item -Path (Join-Path $OutputPath "CippExtensions") -Destination $ModulePath -Recurse -Force

Write-Host "Module built and replaced successfully"

# Clean up output directory
Remove-Item -Path $OutputPath -Recurse -Force

# Create ZIP File in a New Source Directory
- name: Prepare and Zip Release Files
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Logs
ExcludedTenants
SendNotifications/config.json
.env

Output/

# Cursor IDE
.cursor/rules
11 changes: 10 additions & 1 deletion CIPPTimers.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"Id": "4d80205c-674d-4fc1-abeb-a1ec37e0d796",
"Command": "Start-DriftStandardsOrchestrator",
"Description": "Orchestrator to process drift standards",
"Cron": "0 0 */1 * * *",
"Cron": "0 0 */12 * * *",
"Priority": 5,
"RunOnProcessor": true,
"PreferredProcessor": "standards"
Expand Down Expand Up @@ -213,5 +213,14 @@
"Priority": 20,
"RunOnProcessor": true,
"IsSystem": true
},
{
"Id": "b8f3c2e1-5d4a-4f7b-9a2c-1e6d8f3b5a7c",
"Command": "Start-BackupRetentionCleanup",
"Description": "Timer to cleanup old backups based on retention policy",
"Cron": "0 0 2 * * *",
"Priority": 21,
"RunOnProcessor": true,
"IsSystem": true
}
]
Binary file removed Modules/Az.Accounts/4.0.2/.signature.p7s
Binary file not shown.
Loading