From 3be7ed6f4d9ed301aaa10ce7f2283abe9fb53652 Mon Sep 17 00:00:00 2001 From: Emily Yang Date: Wed, 8 Jan 2025 14:51:04 -0500 Subject: [PATCH] Update build step in codeql-analysis-csharp.yaml add a step before build step --- .github/workflows/codeql-analysis-csharp.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis-csharp.yaml b/.github/workflows/codeql-analysis-csharp.yaml index 4933421c2..ff4834c3f 100644 --- a/.github/workflows/codeql-analysis-csharp.yaml +++ b/.github/workflows/codeql-analysis-csharp.yaml @@ -56,7 +56,14 @@ jobs: # echo "Run, Build Application using script" # ./location_of_script_within_repo/buildscript.sh - - run: | + - name: Install dependencies + run: | + dotnet restore lib/PuppeteerSharp.sln + dotnet dev-certs https -ep lib/PuppeteerSharp.TestServer/testCert.cer + sudo openssl x509 -inform der -in lib/PuppeteerSharp.TestServer/testCert.cer -out /usr/local/share/ca-certificates/testCert.crt -outform pem + sudo update-ca-certificates + - name: Build + run: | echo "Run, Build Application using script" dotnet build lib/PuppeteerSharp.sln