mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
debug update powershell.config.json
This commit is contained in:
14
.github/workflows/golang-test-windows.yml
vendored
14
.github/workflows/golang-test-windows.yml
vendored
@@ -50,10 +50,22 @@ jobs:
|
||||
# - name: Build helper
|
||||
# run: go test -c -o ${{ github.workspace }}/iface-testing.bin.exe ./iface/
|
||||
# "C:\hostedtoolcache\windows\go\1.19.7\x64\bin\go.exe"
|
||||
- name: custom config
|
||||
if: ${{ always() }}
|
||||
run: |
|
||||
$ConfigPath = "$PSHOME\powershell.config.json"
|
||||
$ConfigJSON = ConvertTo-Json -InputObject @{
|
||||
"Microsoft.PowerShell:ExecutionPolicy": "RemoteSigned",
|
||||
"WindowsPowerShellCompatibilityModuleDenyList": [
|
||||
"BestPractices",
|
||||
"UpdateServices"
|
||||
]
|
||||
}
|
||||
$ConfigJSON | Out-File -Force $ConfigPath
|
||||
|
||||
- name: Test
|
||||
if: ${{ always() }}
|
||||
run: |
|
||||
rm "$PSHOME\powershell.config.json"
|
||||
Import-Module PSScheduledJob -UseWindowsPowerShell
|
||||
Import-Module ".\Invoke-ScheduledTask.ps1"
|
||||
Import-Module ".\Invoke-CommandAs.ps1"
|
||||
|
||||
Reference in New Issue
Block a user