You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements automated security scanning via CodeQL on every commit and PR. Critical and high severity issues (scores ≥7.0) fail the build; medium/low issues report without blocking.
Changes
Workflow (.github/workflows/codeql-analysis.yml)
Runs on push to main/develop, all PRs, and daily at 2AM UTC
Analyzes C# using security-extended query suite
Parses SARIF output to enforce severity thresholds:
Critical (9.0-10.0) → fails build
High (7.0-8.9) → fails build
Medium (4.0-6.9) → warning only
Low (0.0-3.9) → info only
Uploads results to GitHub Security tab
Creates required PR check status
Documentation
Comprehensive setup guide at .github/workflows/CODEQL_SETUP.md
Updated workflow README with CodeQL section and troubleshooting
Added CodeQL badge to .github/BADGES.md
Severity Enforcement
# Workflow fails on this PowerShell logic:if ($criticalCount -gt 0 -or $highCount -gt 0) {Write-Host "##[error]Found $criticalCount critical and $highCount high severity issues"exit 1}
First run may require workflow approval. Configure branch protection to make CodeQL check required for merge.
Original prompt
This section details on the original issue you should resolve
<issue_title>PR checks need to ensure CodeQL is being run on each commit and any feedback is displayed in the PR. If an issue is severe it should stop the build until addressed.</issue_title>
<issue_description></issue_description>
Comments on the Issue (you are @copilot in this section)
💡 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.
CopilotAI
changed the title
[WIP] Add CodeQL checks to prevent build until issues are resolved
Add CodeQL security analysis with severity-based build blocking
Feb 6, 2026
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
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.
Implements automated security scanning via CodeQL on every commit and PR. Critical and high severity issues (scores ≥7.0) fail the build; medium/low issues report without blocking.
Changes
Workflow (
.github/workflows/codeql-analysis.yml)main/develop, all PRs, and daily at 2AM UTCsecurity-extendedquery suiteDocumentation
.github/workflows/CODEQL_SETUP.md.github/BADGES.mdSeverity Enforcement
First run may require workflow approval. Configure branch protection to make CodeQL check required for merge.
Original prompt
💡 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.