✨ add parser for .real
files
#1090
Workflow file for this run
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: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
workflow_dispatch: | |
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@v4 | |
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@v3 | |
with: | |
languages: ${{ matrix.language }} | |
config: | | |
queries: | |
- uses: security-and-quality | |
- if: matrix.language == 'cpp' | |
name: Configure CMake | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug | |
- if: matrix.language == 'cpp' | |
name: Build | |
run: cmake --build build --parallel 4 | |
# run CodeQL analysis without uploading results (to avoid false positives on third party code) | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
upload: False | |
output: sarif-results | |
# filter out third party code from the results | |
- name: filter-sarif | |
uses: advanced-security/filter-sarif@main | |
with: | |
patterns: | | |
-**/extern/** | |
-**/build/** | |
input: sarif-results/${{ matrix.language }}.sarif | |
output: sarif-results/${{ matrix.language }}.sarif | |
- name: Upload SARIF | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: sarif-results/${{ matrix.language }}.sarif |