Skip to content

Refactor PowerShell SCCM maintenance and CI coverage#6

Merged
cgfixit merged 4 commits into
mainfrom
agent/refactor-sccm-powershell-ci
Jul 13, 2026
Merged

Refactor PowerShell SCCM maintenance and CI coverage#6
cgfixit merged 4 commits into
mainfrom
agent/refactor-sccm-powershell-ci

Conversation

@cgfixit

@cgfixit cgfixit commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Refactor sccmpatch.ps1 into a testable PowerShell 5.1-compatible orchestration flow.
  • Preserve and exercise SCCM exit codes, including reachable invalid-stage 90, timeout 30, reboot 3010, and guarded failure mappings.
  • Add explicit terminating behavior for Veeam/WinRM service operations and native ShouldProcess/-WhatIf protection.
  • Add mocked unit coverage and a process-level integration test.
  • Run parser and Pester validation on Ubuntu PowerShell 7 and Windows PowerShell 5.1 in CI.

Validation

  • Windows PowerShell 5.1 parser: PASS
  • Pester 5.8.0: 17/17 PASS
  • Workflow YAML parse: PASS
  • No live Veeam, WinRM, SCCM, or proxy operations performed
  • Local PSScriptAnalyzer/actionlint unavailable; GitHub Actions provides those checks

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment thread tests/sccmpatch.Integration.Tests.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
Comment thread sccmpatch.ps1 Fixed
@cgfixit cgfixit marked this pull request as ready for review July 13, 2026 14:03
@cgfixit cgfixit merged commit 6e8a452 into main Jul 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants