From 22f2e237875abd442b31dc773c5defdf0bf15862 Mon Sep 17 00:00:00 2001 From: "m.semalaiappan" Date: Mon, 19 Feb 2024 09:21:28 -0600 Subject: [PATCH] Install Visual Studio SDK --- .../Security Vulnerability Check on Release Tags.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/Security Vulnerability Check on Release Tags.yml b/.github/workflows/Security Vulnerability Check on Release Tags.yml index e9f3bda8d2..ccca41aca2 100644 --- a/.github/workflows/Security Vulnerability Check on Release Tags.yml +++ b/.github/workflows/Security Vulnerability Check on Release Tags.yml @@ -30,6 +30,17 @@ jobs: repository: Ed-Fi-Alliance-OSS/Ed-Fi-ODS path: Ed-Fi-ODS/ ref: ${{ matrix.tag }} + - name: Install Visual Studio SDK + shell: pwsh + run: | + $visualStudioVersion = "2019" + $installerUrl = "https://aka.ms/vs/$visualStudioVersion/release/vs_buildtools.exe" + + # Download the Visual Studio Build Tools installer + Invoke-WebRequest -Uri $installerUrl -OutFile vs_buildtools.exe + + # Run the installer silently + Start-Process -FilePath vs_buildtools.exe -ArgumentList "--quiet --wait --norestart" -Wait - name: Execute vulnerability working-directory: ./Ed-Fi-ODS/