Skip to content

[DO NOT MERGE] drop other CI pipelines #29

[DO NOT MERGE] drop other CI pipelines

[DO NOT MERGE] drop other CI pipelines #29

name: "CodeQL"
on:
push:
branches: [master, codeql]
pull_request:
branches: [master]
schedule:
- cron: '0 1 * * *'
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-extended
config-file: ./.github/codeql-config.yml
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -qy --no-install-recommends \
bison \
flex \
gawk \
gettext \
libaudit-dev \
libcap-dev \
libcap-ng-dev \
libcunit1-dev \
libdbus-glib-1-dev \
libpcre2-dev \
python3-dev \
swig \
xmlto
- run: make -j$(nproc) DESTDIR="$(pwd)/destdir" install
- if: ${{ matrix.language == 'python' }}
run: make -j$(nproc) DESTDIR="$(pwd)/destdir" install-pywrap
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2