File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,44 @@ trigger:
77 - main
88
99jobs :
10+ - job : CodeQLAnalysis
11+ displayName : ' CodeQL Security Analysis'
12+ pool :
13+ vmImage : ' ubuntu-latest'
14+
15+ steps :
16+ - script : |
17+ sudo apt-get update
18+ sudo apt-get install -y build-essential cmake curl git python3 python3-pip python3-dev python3-venv unixodbc-dev
19+ displayName: 'Install build dependencies for CodeQL'
20+
21+ - task : UsePythonVersion@0
22+ inputs :
23+ versionSpec : ' 3.13'
24+ addToPath : true
25+ displayName : ' Use Python 3.13 for CodeQL'
26+
27+ - script : |
28+ python -m pip install --upgrade pip
29+ pip install -r requirements.txt
30+ displayName: 'Install Python dependencies for CodeQL'
31+
32+ - task : CodeQL3000Init@0
33+ inputs :
34+ Enabled : true
35+ displayName : ' Initialize CodeQL'
36+
37+ # Build the C++ extension for CodeQL analysis
38+ - script : |
39+ cd mssql_python/pybind
40+ chmod +x build.sh
41+ ./build.sh
42+ displayName: 'Build C++ extension for CodeQL analysis'
43+
44+ - task : CodeQL3000Finalize@0
45+ condition : always()
46+ displayName : ' Finalize CodeQL'
47+
1048- job : PytestOnWindows
1149 displayName : ' Windows x64'
1250 pool :
You can’t perform that action at this time.
0 commit comments