-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.17 KB
/
codeql-c-analysis.yml
File metadata and controls
47 lines (39 loc) · 1.17 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
# SPDX-FileCopyrightText: 2021 Comcast Cable Communications Management, LLC
# SPDX-License-Identifier: Apache-2.0
name: LGTM C Analysis
on:
workflow_call:
inputs:
packages:
description: 'The optional list of ubuntu packages to install prior to building.'
type: string
jobs:
codeql:
name: LGTM C Analysis
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install packages
run: |
sudo apt-get update
sudo apt-get -y install python3 python3-pip python3-setuptools python3-wheel \
ninja-build valgrind gcovr \
libcunit1 libcunit1-doc libcunit1-dev \
${{ inputs.packages }}
- name: Install Meson
run: |
pip3 install --user 'meson>=0.59.0'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: cpp
queries: security-extended
- run: |
meson build
cd build
ninja all
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4