diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ca7bd36..7d895ea 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -24,6 +24,11 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + env: + Configuration: Release + Solution_Path: MTSC.sln + Source_Project_Path: MTSC\MTSC.csproj + Actions_Allow_Unsecure_Commands: true permissions: actions: read contents: read @@ -57,8 +62,8 @@ jobs: # 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@v1 + # - name: Autobuild + # uses: github/codeql-action/autobuild@v1 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -71,5 +76,8 @@ jobs: # make bootstrap # make release + - name: Build MTSC project + run: dotnet build MTSC -c $env:Configuration + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 diff --git a/MTSC.sln b/MTSC.sln index 9b36bb9..6367363 100644 --- a/MTSC.sln +++ b/MTSC.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29102.190 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31815.197 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MTSC", "MTSC\MTSC.csproj", "{869DAEBC-5884-43C9-BA0B-2C4376A7ED1C}" EndProject @@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Pipelines", "Pipelines", "{ ProjectSection(SolutionItems) = preProject .github\workflows\cd.yaml = .github\workflows\cd.yaml .github\workflows\ci.yaml = .github\workflows\ci.yaml + .github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml EndProjectSection EndProject Global