cisagov / ScubaGear

Automation to assess the state of your M365 tenant against CISA's baselines
https://www.cisa.gov/resources-tools/services/secure-cloud-business-applications-scuba-project
Creative Commons Zero v1.0 Universal
1.44k stars 203 forks source link

Unit test workflow PowerShell code #1164

Closed james-garriss closed 1 day ago

james-garriss commented 2 weeks ago

💡 Summary

Create a pattern for how to unit test PowerShell code in workflows. Implement that pattern for at least one function. This allows us to eventually implement this pattern for all PowerShell code in workflows.

Motivation and context

When workflows use PowerShell code, this code should be unit tested in order to catch (at least some) bugs (such as the recent signing problems).

Implementation notes

Acceptance criteria