Skip to content

Commit 64de2f6

Browse files
committed
Add CodeQL to pytestonwindows job to update stale snapshot SM02986
1 parent 9482839 commit 64de2f6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

eng/pipelines/pr-validation-pipeline.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
displayName: 'Windows x64'
5050
pool:
5151
vmImage: 'windows-latest'
52+
variables:
53+
# Enable CodeQL for this job to update the old stale snapshot (build_jobname=pytestonwindows)
54+
# This can be removed once the old CodeQL issue SM02986 is cleared
55+
Codeql.Enabled: true
5256

5357
strategy:
5458
matrix:
@@ -63,6 +67,24 @@ jobs:
6367
pythonVersion: '3.14'
6468

6569
steps:
70+
# ============== CodeQL Analysis (temporary - remove after SM02986 is cleared) ==============
71+
- task: CodeQL3000Init@0
72+
inputs:
73+
Enabled: true
74+
displayName: 'Initialize CodeQL (temporary)'
75+
76+
# Build C++ extension for CodeQL analysis
77+
- script: |
78+
cd mssql_python\pybind
79+
call build.bat x64
80+
displayName: 'Build C++ extension for CodeQL'
81+
condition: eq(variables['pythonVersion'], '3.13') # Only build once, not for each matrix
82+
83+
- task: CodeQL3000Finalize@0
84+
condition: eq(variables['pythonVersion'], '3.13') # Only finalize once
85+
displayName: 'Finalize CodeQL (temporary)'
86+
# ============== End CodeQL Analysis ==============
87+
6688
- task: UsePythonVersion@0
6789
inputs:
6890
versionSpec: '$(pythonVersion)'

0 commit comments

Comments
 (0)