CodeQL #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |