Skip to content

Commit 1ccd1db

Browse files
committed
Force trusted registration of PSGallery
1 parent ff83454 commit 1ccd1db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/installPSResources.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
Register-PSResourceRepository -PSGallery -Trusted -Force
45
if ($PSVersionTable.PSVersion.Major -lt 6) {
56
throw "The build script requires PowerShell 7!"
67
}
78

8-
# TODO: Switch to Install-PSResource when CI uses PowerShell 7.4
9-
Install-Module -Name InvokeBuild -Scope CurrentUser
10-
Install-Module -Name platyPS -Scope CurrentUser
9+
Write-Host $PSVersionTable
10+
11+
Install-PSResource -Name InvokeBuild -Scope CurrentUser
12+
Install-PSResource -Name platyPS -Scope CurrentUser

0 commit comments

Comments
 (0)