codeql #345
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" | |
container: | |
image: gcc:13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Setup | |
run: apt-get update && apt-get install -y cmake zlib1g-dev | |
- name: CodeQL Initialization | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp | |
queries: +security-and-quality | |
- name: Build | |
run: | | |
cmake . -Bbuild | |
cmake --build build | |
- name: CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |