Skip to content

Commit 7425b25

Browse files
authored
Update CodeQL workflow for new configurations
1 parent fa19ea8 commit 7425b25

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/codeql.yml

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

0 commit comments

Comments
 (0)