From 7ae117dcc84fbb6dc3ee41c92d0abfee37e3442d Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Mon, 12 Feb 2024 14:18:36 -0800 Subject: [PATCH] set psmodulepath to fix the pwsh7.4 issue --- builder/actions/setup_cross_ci_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/actions/setup_cross_ci_helpers.py b/builder/actions/setup_cross_ci_helpers.py index 968426028..4888f1844 100644 --- a/builder/actions/setup_cross_ci_helpers.py +++ b/builder/actions/setup_cross_ci_helpers.py @@ -23,6 +23,7 @@ def create_windows_cert_store(env, certificate_env, location_env): # Import the PFX into the Windows Certificate Store # (Passing '$mypwd' is required even though it is empty and our certificate has no password. It fails CI otherwise) import_pfx_arguments = [ + "$env:PSModulePath = '';", "Import-PfxCertificate", "-FilePath", pfx_cert_path, "-CertStoreLocation", windows_certificate_folder]