From a9152d12601a3cceec7b3690f2e494b486d271cb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 07:09:03 +0000 Subject: [PATCH 1/2] Initial plan From 4222c78b41d71cdf02d4b6c4622f3e6120e732a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 07:11:43 +0000 Subject: [PATCH 2/2] Add setup-dotnet step to CodeQL workflow for C# autobuild Co-authored-by: shibayan <1356444+shibayan@users.noreply.github.com> --- .github/workflows/codeql.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 97e5dd7..8f2c284 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -8,10 +8,13 @@ on: schedule: - cron: '15 22 * * 2' +env: + DOTNET_VERSION: 10.0.x + jobs: analyze: name: Analyze (${{ matrix.language }}) - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || (matrix.language == 'csharp' && 'windows-latest') || 'ubuntu-latest' }} permissions: security-events: write packages: read @@ -27,7 +30,13 @@ jobs: build-mode: autobuild steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Use .NET ${{ env.DOTNET_VERSION }} + if: matrix.language == 'csharp' + uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} - name: Initialize CodeQL uses: github/codeql-action/init@v4