Update CodeQL action to v3 #357
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 5 * * 3' | |
jobs: | |
codeql: | |
runs-on: ubuntu-latest | |
name: "CodeQL" | |
env: | |
CC: gcc-13 | |
CXX: g++-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Install dependencies | |
run: sudo script/ci_setup_dependencies.sh | |
- name: CodeQL Initialization | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp | |
queries: +security-and-quality | |
- name: Build | |
run: | | |
cmake -S test -B build | |
cmake --build build -j 4 | |
- name: CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |