CodeQL #87
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: [ "master", "codeql" ] | |
pull_request: | |
branches: [ "master", "codeql" ] | |
schedule: | |
- cron: "23 8 * * 5" | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: cpp | |
queries: +security-and-quality | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install meson libcurl4-openssl-dev libjson-glib-dev | |
- name: Build C Code | |
run: | | |
meson setup build | |
meson compile -C build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:cpp" |