mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
[Windows] Force Chocolatey to check packages hashes (#9020)
This commit is contained in:
@@ -32,7 +32,7 @@ function Install-ChocoPackage {
|
|||||||
$count = 1
|
$count = 1
|
||||||
while ($true) {
|
while ($true) {
|
||||||
Write-Host "Running [#$count]: choco install $packageName -y $argumentList"
|
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
|
$pkg = choco list --localonly $packageName --exact --all --limitoutput
|
||||||
if ($pkg) {
|
if ($pkg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user