From cd286f70f7b10ea90ed8c4e46d6ac255ea02091c Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:28:36 +0100 Subject: [PATCH] [Windows] Force Chocolatey to check packages hashes (#9020) --- images/windows/scripts/helpers/ChocoHelpers.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/windows/scripts/helpers/ChocoHelpers.ps1 b/images/windows/scripts/helpers/ChocoHelpers.ps1 index 479facf1d..7332d0e13 100644 --- a/images/windows/scripts/helpers/ChocoHelpers.ps1 +++ b/images/windows/scripts/helpers/ChocoHelpers.ps1 @@ -32,7 +32,7 @@ function Install-ChocoPackage { $count = 1 while ($true) { Write-Host "Running [#$count]: choco install $packageName -y $argumentList" - choco install $packageName -y @argumentList --no-progress + choco install $packageName -y @argumentList --no-progress --require-checksums $pkg = choco list --localonly $packageName --exact --all --limitoutput if ($pkg) {