FIX: S360 CodeQL finding in PR validation to resolve stale snapshot issue#407
Merged
gargsaumya merged 6 commits intomainfrom Jan 27, 2026
Merged
FIX: S360 CodeQL finding in PR validation to resolve stale snapshot issue#407gargsaumya merged 6 commits intomainfrom
gargsaumya merged 6 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modifies the PR validation pipeline to fix a CodeQL snapshot issue. The main changes include globally disabling CodeQL auto-injection and adding a temporary job to update a stale CodeQL snapshot associated with the old 'pytestonwindows' build identifier.
Changes:
- Disabled global CodeQL auto-injection in the PR validation pipeline to prevent duplicate analysis
- Added a one-time 'pytestonwindows' job to update the old CodeQL snapshot on Windows with CodeQL explicitly enabled
- Updated build commands from Linux (build.sh) to Windows (build.bat) to match the platform change
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6b5569d to
902a591
Compare
- Disable CodeQL auto-injection globally in PR validation pipeline - Add one-time 'pytestonwindows' job on Ubuntu to update the old stale CodeQL snapshot - Uses build.sh on Linux (matching original CodeQL job setup) - This fixes the S360 CodeQL finding SM02986 that was stuck on outdated code - After the old snapshot is cleared, the pytestonwindows job should be removed Resolves: User Story 39809 [S360] [CodeQL.SM02986]
0f185d1 to
19d5ed2
Compare
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changesNo lines with coverage information in this diff. 📋 Files Needing Attention📉 Files with overall lowest coverage (click to expand)mssql_python.pybind.logger_bridge.hpp: 58.8%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.row.py: 66.2%
mssql_python.pybind.ddbc_bindings.cpp: 69.4%
mssql_python.pybind.ddbc_bindings.h: 69.7%
mssql_python.pybind.connection.connection.cpp: 73.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 84.1%
mssql_python.cursor.py: 84.7%🔗 Quick Links
|
bewithgaurav
approved these changes
Jan 27, 2026
sumitmsft
approved these changes
Jan 27, 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 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.
Disable CodeQL auto-injection globally in PR validation pipeline
Add one-time 'pytestonwindows' job to update the old stale CodeQL snapshot
This fixes the S360 CodeQL finding SM02986 that was stuck on outdated code
After the old snapshot is cleared, the pytestonwindows job should be removed
Resolves: User Story 39809 [S360] [CodeQL.SM02986]
Work Item / Issue Reference
Summary
This pull request updates the PR validation pipeline configuration to address CodeQL analysis and snapshot management. The main changes are disabling automatic CodeQL analysis to prevent duplicate findings, and introducing a one-time job to update a legacy CodeQL snapshot for the
pytestonwindowsbuild. These adjustments ensure that CodeQL runs only where needed and help resolve an old issue with snapshot duplication.CodeQL Analysis Configuration:
Codeql.Enabledvariable tofalse, ensuring CodeQL analysis is not performed in this pipeline except where explicitly enabled.One-time Snapshot Update Job:
pytestonwindowsto update the old CodeQL snapshot. This job is configured to run onwindows-latestand temporarily enables CodeQL analysis for this specific purpose. The job is intended for one-time use and should be removed after the snapshot issue is resolved.Build and Dependency Changes (Windows Compatibility):
call build.bat x64andcd mssql_python\pybind) and install additional dependencies required for building the C++ extension. [1] [2]