Skip to content

🚚 Move to MQT Core package (#171) #943

🚚 Move to MQT Core package (#171)

🚚 Move to MQT Core package (#171) #943

name: "CodeQL"
on:
push:
pull_request:
schedule:
- cron: "15 21 * * 6"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
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@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install boost
run: sudo apt-get update && sudo apt-get -y install libboost-all-dev
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: .github/codeql-config.yml
- if: matrix.language == 'cpp'
name: Configure CMake
run: cmake -S . -B build -DBINDINGS=ON
- if: matrix.language == 'cpp'
name: Build
run: cmake --build build --parallel 3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
upload: False
output: sarif-results
- name: filter-sarif
uses: advanced-security/filter-sarif@main
with:
patterns: |
-**/extern/**
input: sarif-results/${{ matrix.language }}.sarif
output: sarif-results/${{ matrix.language }}.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: sarif-results/${{ matrix.language }}.sarif