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:
|
2024-03-10 05:49:00 -07:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
2023-09-10 06:21:56 -07:00
|
|
|
|
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" ]
|
2024-03-27 06:14:25 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
|
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
|