Repository navigation
fix(ci): upload CodeQL results together - #10295
Merged
ReubenBond merged 2 commits intoJul 21, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b03cf56f-2e40-4d40-bc2d-7e667a0d965c
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the CodeQL GitHub Actions workflow to avoid partial SARIF uploads from the language matrix triggering premature (and stale) PR evaluations in GitHub Advanced Security. It stages each language’s SARIF output as an artifact and performs a single upload step after all matrix entries complete (while continuing to skip uploads for merge queue runs).
Changes:
- Disable per-language SARIF uploads during the matrix run and instead stage SARIF output as artifacts.
- Add a follow-up job which downloads all staged SARIF artifacts and uploads them together via
upload-sarif.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/codeql.yml | Stages per-language SARIF results from the CodeQL matrix and uploads them together in a dependent job to avoid incomplete PR evaluation. |
Copilot's findings
Comments suppressed due to low confidence (1)
.github/workflows/codeql.yml:66
- If the analysis matrix job is renamed to
analyze, this upload-only job should use a distinct id (for exampleupload) and depend onanalyzeto keep the workflow readable.
analyze:
name: Upload CodeQL results
if: github.event_name != 'merge_group'
needs: generate
- Files reviewed: 1/1 changed files
- Comments generated: 1
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b03cf56f-2e40-4d40-bc2d-7e667a0d965c
This was referenced Jul 22, 2026
This was referenced Jul 29, 2026
This was referenced Jul 29, 2026
Merged
This was referenced Aug 18, 2026
Closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
CodeQL's language matrix uploads results as each analysis finishes. Fast Actions and JavaScript uploads can trigger GitHub Advanced Security's pull-request evaluation before the slower C# result exists, producing a stale configuration-not-found warning.\n\nStage each language's post-processed SARIF output and upload all results together after every analysis completes. This preserves the existing per-language categories and the no-upload behavior for merge queues while ensuring GitHub evaluates a complete configuration set.
Microsoft Reviewers: Open in CodeFlow