Skip to content

CodeQL

CodeQL #226

name: CodeQL
on:
push:
pull_request:
schedule:
- cron: '0 8 * * 1'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: [
# 'cpp',
'python'
]
steps:
- name: Checkout repository.
uses: actions/checkout@v2
with:
submodules: recursive
- name: Initialize CodeQL.
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
config-file: ./.github/codeql/codeql_config.yml
- name: Setup Python.
if: matrix.language == 'cpp'
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build.
if: matrix.language == 'cpp'
run: |
sudo apt install -y python3.9-dev
python setup.py build
# it takes too long for cpp
- name: Perform CodeQL Analysis.
uses: github/codeql-action/analyze@v1