From bb2444e9f8594eaed7d0133abe2f12ce9b2345d4 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Mon, 3 Mar 2025 15:46:53 -0800 Subject: [PATCH] Remove PowerShell <7.4 workaround from OneBranch --- .pipelines/SecretManagement-Official.yml | 5 +---- tools/installPSResources.ps1 | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pipelines/SecretManagement-Official.yml b/.pipelines/SecretManagement-Official.yml index 7110dde..8759e60 100644 --- a/.pipelines/SecretManagement-Official.yml +++ b/.pipelines/SecretManagement-Official.yml @@ -78,10 +78,7 @@ extends: inputs: packageType: sdk useGlobalJson: true - - pwsh: | - Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted - Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet - ./tools/installPSResources.ps1 -PSRepository CFS + - pwsh: ./tools/installPSResources.ps1 -PSRepository CFS displayName: Install PSResources - pwsh: Invoke-Build -Configuration $(BuildConfiguration) -Task Build, Test displayName: Build diff --git a/tools/installPSResources.ps1 b/tools/installPSResources.ps1 index b3395a1..556103d 100644 --- a/tools/installPSResources.ps1 +++ b/tools/installPSResources.ps1 @@ -16,7 +16,7 @@ Install-PSResource -Verbose -TrustRepository -RequiredResource @{ InvokeBuild = @{ version = "5.12.1" repository = $PSRepository - } + } platyPS = @{ version = "0.14.2" repository = $PSRepository