Repository navigation
72 lines (61 loc) · 1.86 KB
/
Copy pathcodeql.yaml
File metadata and controls
72 lines (61 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
##############################################################################
# Copyright 2025-2026 Leon Lynch
#
# This file is licensed under the terms of the LGPL v2.1 license.
# See LICENSE file.
##############################################################################
name: CodeQL
on:
push:
pull_request:
branches: [ "master" ]
schedule:
- cron: '15 4 20 * *'
env:
TR31_VERSION: 0.6.6
jobs:
analyze:
strategy:
fail-fast: false
matrix:
include:
- { name: "Ubuntu 26.04", os: "ubuntu-26.04", ubuntu_release_name: "resolute", build_type: "Debug" }
name: ${{ matrix.name }} build (CodeQL)
runs-on: ${{ matrix.os }}
timeout-minutes: 360
permissions:
security-events: write
packages: read
actions: read
contents: read
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libmbedtls-dev qt6-base-dev
- name: Install TR-31 release
run: |
gh release download --repo openemv/tr31 ${{ env.TR31_VERSION }}
unzip tr31-${{ env.TR31_VERSION }}-${{ matrix.os }}.zip
sudo dpkg -i tr31_${{ env.TR31_VERSION }}-0ubuntu1~ppa1~${{ matrix.ubuntu_release_name }}1_amd64.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: c-cpp
build-mode: manual
queries: security-and-quality
- name: Build
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" \
-DCMAKE_REQUIRE_FIND_PACKAGE_tr31=YES \
-DBUILD_DUKPT_UI=YES
cmake --build build -j 4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4