Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

📣 [NOTICE] This repo is being deprecated #370

📣 [NOTICE] This repo is being deprecated

📣 [NOTICE] This repo is being deprecated #370

Workflow file for this run

name: "CodeQL"
on:
push:
pull_request:
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
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
config-file: .github/codeql-config.yml
- name: Configure CMake
run: cmake -S . -B build -DBUILD_DD_PACKAGE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
- name: Build C++
run: cmake --build build --parallel 2 --config Debug
- 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/**
-**/test/**
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: sarif-results/cpp.sarif