-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (39 loc) · 1.03 KB
/
CodeQL.yml
File metadata and controls
43 lines (39 loc) · 1.03 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
# This scans MaCh3 and tries to find vulnerabilities
# KS: Scan both CPU and GPU
name: "CodeQL C++ Analysis"
on:
schedule:
- cron: '0 0 * * 1' # KS: Every Monday at midnight to not disturb during weekend...
jobs:
analyze:
name: Analyze C++ Code with CodeQL
runs-on: ubuntu-latest
strategy:
matrix:
container: [
"ghcr.io/mach3-software/mach3:alma9latest",
#"ghcr.io/mach3-software/mach3:rocky9cudalatest" #
]
container:
image: ${{ matrix.container }}
permissions:
security-events: write
packages: read
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: c-cpp
build-mode: manual
- name: Build Code
run: |
mkdir build
cd build
cmake ..
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4