From b0f75878f78894b7caccc87af3cf00c5aa7d9763 Mon Sep 17 00:00:00 2001 From: claudiamurialdo <33756655+claudiamurialdo@users.noreply.github.com> Date: Tue, 24 Oct 2023 17:13:43 -0300 Subject: [PATCH] Fixes issue of JVM running out of memory when analyzing the scan results (#893) * Fixes issue of JVM running out of memory when analyzing the scan results. * Create temporal solution for codeql without unit test. * Force building temporary solution: CodeqlSolution instead of DotNetStandardClasses.sln * Set env var SolutionFile * Set TempSolution env var to CodeqlSolution * Run Codeql only for net8 assemblies. * Switch to .NET 6 to enable merging into the master branch * Switch to .NET 6 to enable merging into the master branch --- .github/workflows/codeql-analysis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 99baa795e..ed0cd3f68 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,7 +28,7 @@ jobs: env: Configuration: Release - SolutionFile: dotnet\DotNetStandardClasses.sln + SolutionFile: dotnet\CodeqlSolution.sln strategy: fail-fast: false @@ -60,10 +60,19 @@ jobs: with: dotnet-version: '8.0.100-rc.1.23455.8' + - name: Create temporary solution + run: | + $TempSolution = "CodeqlSolution" + dotnet new sln --name $TempSolution --output dotnet --force + dotnet msbuild dotnet\DotNetStandardClasses.sln /t:DumpProjects -p:DumpSolutionName=$TempSolution /m:1 -p:DumpSolutionTargetFrameworkDefault=net6 + + - name: Build temporary solution + run: dotnet build dotnet\CodeqlSolution.sln --framework net6.0 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + #- name: Autobuild + # uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl