Skip to content

Commit

Permalink
Fixes issue of JVM running out of memory when analyzing the scan resu…
Browse files Browse the repository at this point in the history
…lts (#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
  • Loading branch information
claudiamurialdo authored Oct 24, 2023
1 parent c3fd885 commit b0f7587
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

env:
Configuration: Release
SolutionFile: dotnet\DotNetStandardClasses.sln
SolutionFile: dotnet\CodeqlSolution.sln

strategy:
fail-fast: false
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b0f7587

Please sign in to comment.