Restore buildless C# CodeQL analysis - #1530
Conversation
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
Bring the CodeQL fix onto the latest upstream workflow so the PR contains only the buildless C# job relative to main. Files changed: - Upstream main changes - .github/workflows/codeql-analysis.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 29c161d0-1e96-482a-a1b0-bf6d058d70ea
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is a straightforward, additive workflow update that uses CodeQL’s supported buildless mode for C# without impacting existing analyses.
Pull request overview
This PR restores CodeQL coverage for the repository’s C# sources by adding a dedicated, buildless C# analysis job, avoiding the need to compile legacy .NET Framework/Xamarin projects while still producing CodeQL results for security scanning/KPI needs.
Changes:
- Added a new
analyze-csharpjob to run CodeQL forcsharponwindows-2022. - Configured C# CodeQL initialization to use
build-mode: none(buildless analysis).
File summaries
| File | Description |
|---|---|
| .github/workflows/codeql-analysis.yml | Adds a standalone buildless CodeQL job for C# analysis alongside existing language jobs. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Summary
Rationale
PR #1357 removed C# from the language matrix after the Windows 2022 job could not observe a successful C# compilation. CodeQL now supports
build-mode: nonefor C#, which analyzes the checked-in source without invoking those legacy build paths.Validation
.github/workflows/codeql-analysis.ymlas YAML