2020-06-11 00:51:52 -07:00
|
|
|
name: "CodeQL scan"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-11-01 04:20:31 -07:00
|
|
|
branches: [ "master stable next" ]
|
2020-06-11 00:51:52 -07:00
|
|
|
pull_request:
|
2023-11-01 04:20:31 -07:00
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [ "master stable next" ]
|
2020-06-11 00:51:52 -07:00
|
|
|
schedule:
|
2023-11-01 04:20:31 -07:00
|
|
|
- cron: '0 17 * * 2'
|
2020-06-11 00:51:52 -07:00
|
|
|
|
|
|
|
jobs:
|
2023-11-01 04:20:31 -07:00
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
|
|
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'c-cpp' ]
|
2020-06-11 00:51:52 -07:00
|
|
|
|
|
|
|
steps:
|
2023-11-01 04:20:31 -07:00
|
|
|
- name: Checkout repository
|
2024-03-03 15:19:34 -07:00
|
|
|
uses: actions/checkout@v4
|
2024-04-28 07:06:23 -07:00
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
2020-06-11 00:51:52 -07:00
|
|
|
|
2023-11-01 04:20:31 -07:00
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2021-05-26 07:11:25 -07:00
|
|
|
|
2023-11-01 04:20:31 -07:00
|
|
|
- run: |
|
|
|
|
echo "Run, Build Application using script"
|
|
|
|
./autogen.sh -s
|
|
|
|
env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking
|
|
|
|
make -j $(nproc) check
|
2020-06-11 00:51:52 -07:00
|
|
|
|
2023-11-01 04:20:31 -07:00
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v2
|
|
|
|
with:
|
|
|
|
category: "/language:${{matrix.language}}"
|