Repository navigation
Restore trustworthy CodeQL scanning across all seven products - #387
Merged
Merged
Conversation
Replace failing sample autobuild with explicit source builds to retain coverage across all seven products and compiler-generated code. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Windows-only build validation leaves Ubuntu CodeQL extraction coverage for all 12 projects, SARIF processing, and fresh main-branch analysis and alert state unverified.
No open issues 🎉
What changed in this PR
This PR replaces CodeQL autobuild with explicit production-source builds to avoid Windows-only samples on Ubuntu and restore scanning across all seven products. GitHub-side extraction, coverage, and refreshed alert verification remain pending.
Changes:
- Manually builds all 12 current projects under product
srcdirectories in Release mode, automatically including future source projects. - Adds pull-request and main-push scanning, retains the weekly schedule, installs the configured .NET SDK, and pins actions to immutable references.
- Documents scan boundaries and the checks required to verify analysis coverage and current alert state.
| File | Description |
|---|---|
| README.md | Documents production scan scope, local reproduction, and post-run verification. |
| .github/workflows/codeql.yml | Updates triggers and action pins; replaces autobuild with explicit production-source builds. |
Review effort: Balanced
damianh
marked this pull request as ready for review
November 2, 2026 17:27
damianh
added a commit
that referenced
this pull request
Nov 2, 2026
Keep scanning implementation and verification details out of the repository overview. Remove the section introduced in #387 without changing the CodeQL workflow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What issue does this PR address?
CodeQL's scheduled Ubuntu run fails with NETSDK1100 after autobuild selects a WPF sample, skipping analysis. The three open CodeQL log-forging alerts still reference an April 2025 commit, so they cannot establish the state of current production source.
Replace autobuild with explicit manual Release builds of all projects under each top-level product's
srcdirectory. This covers 12 projects across all seven products, including the RazorSlices source generator and both trimming harnesses, without building samples, clients, tests, or performance projects. Manual extraction retains compiler-generated code and dependency context that no-build extraction can miss; future production projects undersrcare included automatically.Add pull-request-to-main and main-push scanning while retaining the weekly schedule. Install the SDK from
global.json, pin checkout/setup-dotnet/CodeQL to verified immutable supported action references, and retain the existing job permissions and/language:csharpcategory. Document the scan boundary and acceptance checks.Validation:
go run github.com/rhysd/actionlint/cmd/actionlint@latest .github\workflows\codeql.yml- passed.Build production sourceworkflow block locally on Windows with SDK 10.0.403 - all 12 projects passed with zero warnings or errors; repeated successfully withEmitCompilerGeneratedFiles=trueandMvcBuildViews=true.foss.slnx- all 12 source projects across seven products matched, with no samples/clients/tests/performance projects selected. Checked that failed builds and an empty source inventory fail explicitly.git diff --check- passed.GitHub verification is still required: confirm Ubuntu extraction/project and file coverage, successful analysis and SARIF processing without extraction errors at the intended SHA/ref/category, then a fresh main-branch analysis and refreshed alert state. This targets Scorecard code-scanning alerts #63 (SAST) and #75 (pinning), but does not claim either is resolved before a fresh Scorecard run. CodeQL alerts #96-98 must be reassessed after fresh analysis; no alerts are dismissed or logging fixes included here.