From 9ceaea778124a73e0d7ff0c29ab192cf4700ae60 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:30:48 +0100 Subject: [PATCH] run codeql without building the solution --- .github/workflows/codeql-analysis.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f4feb7348861..2e4b82cfd629 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,15 +43,13 @@ jobs: matrix: include: - language: csharp - build-mode: manual + build-mode: none - language: javascript-typescript build-mode: none steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -61,19 +59,6 @@ jobs: build-mode: ${{ matrix.build-mode }} config-file: ./.github/config/codeql-config.yml - - if: matrix.build-mode == 'manual' - name: Use .NET ${{ env.dotnetVersion }} - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.dotnetVersion }} - dotnet-quality: ${{ env.dotnetIncludePreviewVersions }} - - - if: matrix.build-mode == 'manual' - shell: bash - run: | - dotnet restore ${{ env.solution }} - dotnet build ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-restore -p:ContinuousIntegrationBuild=true - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: