From bf07aaa63c84e57c5bfd8dd586c7fcb16eeb5c15 Mon Sep 17 00:00:00 2001 From: pomian <13592821+pomianowski@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:39:48 +0100 Subject: [PATCH] Create codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..884f651c4 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,39 @@ +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + branches: [ development ] + +jobs: + analyze: + name: Analyze + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - uses: microsoft/setup-msbuild@v1.3 + with: + msbuild-architecture: x64 + + - name: Setup .NET Core SDK 8.x + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.x + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: "csharp" + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1