From d7c3e33a96fcafad4ddbd4a6db81e8505a8eb7f4 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 4 Oct 2021 19:41:33 +0530 Subject: [PATCH] Add patch to update ca-certificates on windows-2016 --- src/scripts/win32.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) 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