Merge pull request #142 from marcransome/dependabot/github_actions/ac… #315
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 analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '00 18 * * 1' | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: macos-latest | |
permissions: | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Install dependencies | |
run: brew install popt | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9 | |
with: | |
languages: cpp | |
queries: security-and-quality | |
source-root: src | |
- name: Build sources | |
run: | | |
cmake -S . -B build | |
cmake --build build | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9 |