Merge pull request #264 from marcransome/dependabot/github_actions/ve… #638
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: CodeQL analysis | |
runs-on: macos-latest | |
permissions: | |
security-events: write | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install dependencies | |
run: brew install popt | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4 | |
with: | |
languages: cpp | |
queries: security-and-quality | |
source-root: src | |
- name: Build sources | |
run: | | |
cmake -S . -B build -D CMAKE_OSX_ARCHITECTURES=arm64 | |
cmake --build build | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4 |