Skip to content

Commit

Permalink
run codeql without building the solution
Browse files Browse the repository at this point in the history
  • Loading branch information
iOvergaard committed Nov 9, 2024
1 parent 6981c7d commit 9ceaea7
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 9ceaea7

Please sign in to comment.