From 52592a4ed1b9d76611dd5fa09129f97dbd2440f8 Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Wed, 12 Feb 2025 18:47:55 -0600 Subject: [PATCH] Pin to ALZ PowerShell version which supports line endings function --- .github/scripts/Invoke-PolicyToBicep.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/Invoke-PolicyToBicep.ps1 b/.github/scripts/Invoke-PolicyToBicep.ps1 index 42c068006..b37f1ac7e 100644 --- a/.github/scripts/Invoke-PolicyToBicep.ps1 +++ b/.github/scripts/Invoke-PolicyToBicep.ps1 @@ -43,7 +43,7 @@ param ( if (-not (Get-Module -ListAvailable -Name ALZ)) { # Module doesn't exist, so install it Write-Information "====> ALZ module isn't already installed. Installing..." -InformationAction Continue - Install-Module -Name ALZ -Force -Scope CurrentUser -ErrorAction Stop + Install-Module -Name ALZ -Force -Scope CurrentUser -ErrorAction Stop -RequiredVersion '4.2.0' Write-Information "====> ALZ module now installed." -InformationAction Continue } else { Write-Information "====> ALZ module is already installed." -InformationAction Continue