From acf72709d585c2a085a0cb3a718ed36915dd72b7 Mon Sep 17 00:00:00 2001 From: "m.semalaiappan" Date: Mon, 19 Feb 2024 09:44:02 -0600 Subject: [PATCH] Install Visual Studio Build Tools --- .../Security Vulnerability Check on Release Tags.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/Security Vulnerability Check on Release Tags.yml b/.github/workflows/Security Vulnerability Check on Release Tags.yml index 29ce1545ff..4511300826 100644 --- a/.github/workflows/Security Vulnerability Check on Release Tags.yml +++ b/.github/workflows/Security Vulnerability Check on Release Tags.yml @@ -38,6 +38,12 @@ jobs: $url = "https://aka.ms/vs/2019/release/vs_buildtools.exe" $output = "vs_buildtools.exe" Invoke-WebRequest -Uri $url -OutFile $output + $expectedSize = (Invoke-WebRequest -Uri $url -Method Head).Headers.'Content-Length' + $actualSize = (Get-Item $output).length + if ($actualSize -ne $expectedSize) { + Write-Host "Download incomplete. Expected size: $expectedSize bytes, Actual size: $actualSize bytes" + exit 1 + } $installArgs = "--quiet --wait --norestart" Start-Process -FilePath $output -ArgumentList $installArgs -Wait