diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 7fdd569d..dca800a3 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -562,6 +562,12 @@ if($version -lt "5.5") { } else { $enable_extensions += ('opcache') } + +# Remove patch once root certificates are updated on image. +if($env:ImageOS -eq 'win16') { + $cert_source = 'Curl' +} + Enable-PhpExtension -Extension $enable_extensions -Path $php_dir Update-PhpCAInfo -Path $php_dir -Source $cert_source Copy-Item -Path $dist\..\src\configs\*.json -Destination $env:RUNNER_TOOL_CACHE