From 0b0fcdef05b4bbe954b00e78520fa7acc76392a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recep=20=C5=9Een?= Date: Wed, 27 May 2026 22:42:51 +0300 Subject: [PATCH 1/2] chore(ci): add CodeQL workflow with autobuild for C# Replaces the default CodeQL setup (build-mode: none) with a custom workflow using autobuild, resolving low C# analysis quality warnings (call target resolution was 65%, below the 85% threshold). Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/codeql.yml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..29e4d3b --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,49 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '0 3 * * 1' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + security-events: write + packages: read + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + language: [csharp, actions] + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + if: matrix.language == 'csharp' + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '11.0.x' + include-prerelease: true + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.language == 'csharp' && 'autobuild' || 'none' }} + + - name: Autobuild + if: matrix.language == 'csharp' + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: /language:${{ matrix.language }} From f0eb0a7d7f2a00bd2f23a14841365fd8c8c4bdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recep=20=C5=9Een?= Date: Wed, 27 May 2026 22:57:38 +0300 Subject: [PATCH 2/2] chore(ci): upgrade codeql-action from v3 to v4 Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/codeql.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 29e4d3b..820f1d2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,16 +34,16 @@ jobs: include-prerelease: true - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.language == 'csharp' && 'autobuild' || 'none' }} - name: Autobuild if: matrix.language == 'csharp' - uses: github/codeql-action/autobuild@v3 + uses: github/codeql-action/autobuild@v4 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: /language:${{ matrix.language }}