2023-11-12 13:40:24 -07:00
|
|
|
name: "codeql"
|
2022-08-18 02:55:15 -07:00
|
|
|
|
2023-09-10 06:21:56 -07:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-08-18 02:55:15 -07:00
|
|
|
on:
|
2023-08-13 12:11:39 -07:00
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [ "master" ]
|
2022-08-18 02:55:15 -07:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
2023-11-30 04:05:13 -07:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: ./.github/actions/setup
|
2022-08-18 02:55:15 -07:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2023-12-14 06:16:35 -07:00
|
|
|
uses: github/codeql-action/init@v3
|
2022-08-18 02:55:15 -07:00
|
|
|
with:
|
2023-02-12 10:12:17 -07:00
|
|
|
languages: cpp
|
2022-08-18 02:55:15 -07:00
|
|
|
|
2023-02-12 10:12:17 -07:00
|
|
|
- run: make
|
2022-08-18 02:55:15 -07:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2023-12-14 06:16:35 -07:00
|
|
|
uses: github/codeql-action/analyze@v3
|