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: