Skip to content

Commit 26bd7a2

Browse files
authored
Update CodeQL workflow for improved analysis
1 parent a596e04 commit 26bd7a2

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CodeQL Advanced
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
11+
12+
jobs:
13+
analyze:
14+
runs-on: ubuntu-24.04
15+
permissions:
16+
security-events: write
17+
packages: read
18+
actions: read
19+
contents: read
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- language: c-cpp
26+
build-mode: manual
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v6
31+
with:
32+
ref: 'develop'
33+
34+
- name: Checkout dependency repository (xengine)
35+
uses: actions/checkout@v6
36+
with:
37+
repository: libxengine/libxengine
38+
path: libxengine
39+
40+
- name: sub module checkout (opensource)
41+
run: |
42+
git submodule init
43+
git submodule update
44+
45+
- name: Set TERM variable
46+
run: echo "TERM=xterm" >> $GITHUB_ENV
47+
48+
- name: Set up Dependency Environment
49+
run: |
50+
cd libxengine
51+
chmod +x ./XEngine_LINEnv.sh
52+
sudo ./XEngine_LINEnv.sh -i 3
53+
54+
- name: Initialize CodeQL
55+
uses: github/codeql-action/init@v4
56+
with:
57+
languages: ${{ matrix.language }}
58+
build-mode: manual
59+
queries: security-and-quality
60+
config-file: .github/workflows/codeql/codeql-config.yml
61+
62+
- name: make
63+
run: |
64+
cd XEngine_Source
65+
make
66+
67+
- name: Perform CodeQL Analysis
68+
uses: github/codeql-action/analyze@v4
69+
with:
70+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)