| 1 |
name: "CodeQL" |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "master" ] |
| 6 |
pull_request: |
| 7 |
branches: [ "master" ] |
| 8 |
schedule: |
| 9 |
- cron: '29 9 * * 4' |
| 10 |
|
| 11 |
jobs: |
| 12 |
analyze: |
| 13 |
name: Analyze |
| 14 |
runs-on: ubuntu-24.04 |
| 15 |
permissions: |
| 16 |
actions: read |
| 17 |
contents: read |
| 18 |
security-events: write |
| 19 |
|
| 20 |
strategy: |
| 21 |
fail-fast: false |
| 22 |
matrix: |
| 23 |
language: [ 'cpp', 'python' ] |
| 24 |
|
| 25 |
steps: |
| 26 |
- name: Checkout repository |
| 27 |
uses: actions/checkout@v6 |
| 28 |
|
| 29 |
# Initializes the CodeQL tools for scanning. |
| 30 |
- name: Initialize CodeQL |
| 31 |
uses: github/codeql-action/init@v4 |
| 32 |
with: |
| 33 |
languages: ${{ matrix.language }} |
| 34 |
|
| 35 |
- name: Install build dependencies |
| 36 |
run: | |
| 37 |
sudo apt -y install ansible |
| 38 |
ansible-playbook -b -i "localhost," -c local misc/install-test-dependencies.yml -e "test_dependencies=false" |
| 39 |
|
| 40 |
- name: Build |
| 41 |
run: | |
| 42 |
./autogen.sh && ./configure && make -j |
| 43 |
|
| 44 |
- name: Perform CodeQL Analysis |
| 45 |
uses: github/codeql-action/analyze@v4 |
| 46 |
with: |
| 47 |
category: "/language:${{matrix.language}}" |