From b6aafd8f09024b2b04412d022d62497ab8293a57 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Sat, 8 Apr 2023 22:19:11 +0200 Subject: [PATCH] debug update powershell.config.json --- .github/workflows/golang-test-windows.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml index 9d814fba8..610f8619f 100644 --- a/.github/workflows/golang-test-windows.yml +++ b/.github/workflows/golang-test-windows.yml @@ -54,12 +54,11 @@ jobs: if: ${{ always() }} run: | $ConfigPath = "$PSHOME\powershell.config.json" + $list = New-Object System.Collections.ArrayList + $list = "BestPractices","UpdateServices" $ConfigJSON = ConvertTo-Json -InputObject @{ "Microsoft.PowerShell:ExecutionPolicy" = "RemoteSigned", - "WindowsPowerShellCompatibilityModuleDenyList" = [ - "BestPractices", - "UpdateServices" - ] + "WindowsPowerShellCompatibilityModuleDenyList" = $list } $ConfigJSON | Out-File -Force $ConfigPath