From a0dcc2e60cd8e9df6300d772b8bbec73087e1d79 Mon Sep 17 00:00:00 2001 From: Thorsten Thiel Date: Sat, 5 Oct 2024 00:06:05 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/codeql.yml | 18 +++++++++++++----- .github/workflows/dotnet.yml | 8 ++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f8e2bd1..13e659e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,7 +2,7 @@ name: "CodeQL" on: push: - branches: [ "main", "*" ] + branches: [ "main" ] pull_request: branches: [ "main" ] schedule: @@ -31,10 +31,18 @@ jobs: uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.x + 9.x + - name: Restore + run: dotnet restore + working-directory: ./src + - name: Build + run: dotnet build --no-restore + working-directory: ./src - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 546b0e7..9c857b8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -4,8 +4,12 @@ name: .NET on: - - push - - pull_request + push: + branches: + - main + pull_request: + branches: + - main jobs: build: