CI: Add CodeQL

This commit is contained in:
Benoit Blanchon
2021-12-14 09:54:13 +01:00
parent abfcac4674
commit 07b9153ae4
2 changed files with 29 additions and 1 deletions

View File

@ -554,3 +554,32 @@ jobs:
source esp-idf/export.sh
cd extras/ci/espidf
idf.py build
codeql:
name: CodeQL
runs-on: ubuntu-latest
needs: gcc
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
- name: Build
run: |
cmake -DCMAKE_BUILD_TYPE=Debug .
cmake --build .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:cpp"