From d5d265b15850ca72de28fb845156c6b9283f4845 Mon Sep 17 00:00:00 2001 From: Bhagirath Mehta Date: Fri, 4 Sep 2026 13:36:35 -0500 Subject: [PATCH] Restore buildless C# CodeQL analysis Upload a C# snapshot for Continuous SDL compliance without building the legacy .NET projects. Files changed: - .github/workflows/codeql-analysis.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 29c161d0-1e96-482a-a1b0-bf6d058d70ea --- .github/workflows/codeql-analysis.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a1f7a9c7f..0e8d05d15 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -77,6 +77,27 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6 + analyze-csharp: + name: Analyze C# + runs-on: windows-2022 + permissions: + contents: read + actions: read + security-events: write + + steps: + - name: Checkout + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + + - name: Initialize CodeQL + uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6 + with: + languages: csharp + build-mode: none + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6 + analyze-java: name: Analyze Java runs-on: windows-latest