Fix CodeQL check name mismatch blocking Dependabot and future PRs#69
Merged
Chris-Wolfgang merged 3 commits intodependabot/nuget/dotnet-dependencies-ff70e400d0from Feb 28, 2026
Merged
Conversation
…rement Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update dotnet-dependencies group with latest version
Fix CodeQL check name mismatch blocking Dependabot and future PRs
Feb 28, 2026
Chris-Wolfgang
approved these changes
Feb 28, 2026
a8b41f6
into
dependabot/nuget/dotnet-dependencies-ff70e400d0
1 check passed
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a GitHub Actions check name mismatch that was blocking all PRs (including Dependabot PR #67) from merging. When a matrix strategy with a single language was used, GitHub Actions appended (csharp) to the job name, registering the check as "Security Scan (CodeQL) (csharp)" instead of the exact string "Security Scan (CodeQL)" required by the branch protection ruleset.
Changes:
- Removed the single-language
strategy.matrixblock from theanalyzejob incodeql.yml - Hardcoded
csharpdirectly in theinitandanalyzeactionwith:blocks - Removed the now-redundant
build-mode: noneparameter and trailing whitespace as part of cleanup
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.
Description
The
codeql.ymljob used amatrixstrategy withlanguage: ['csharp']. GitHub Actions appends matrix values to job names, registering the check as"Security Scan (CodeQL) (csharp)"instead of the"Security Scan (CodeQL)"required by the branch protection ruleset. This caused every PR to be permanently blocked by branch protection even when all jobs passed and approvals were present.Change:
strategy.matrixfromcodeql.yml— only one language was ever in the matrix, so no functionality is lostcsharpdirectly in theinitandanalyzesteps"Security Scan (CodeQL)", matching the branch protection requirementType of change
How Has This Been Tested?
"Security Scan (CodeQL)"and unblock PR Bump the dotnet-dependencies group with 1 update #67Checklist
Screenshots (if applicable)
Additional context
Discovered while investigating why PR #67 (Dependabot bump of
Meziantou.Analyzer) remainedmergeable_state: blockeddespite all CI jobs succeeding and code owner approval being present. The mismatch affects any PR in this repository until fixed onmain.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.