Skip to content

Commit 92036f8

Browse files
committed
ci:add codeql.yml
1 parent aa1e418 commit 92036f8

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/codeql.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
name: "CodeQL Advanced"
1+
name: CodeQL Advanced
22

33
on:
44
push:
55
branches:
6-
- 'develop1'
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
711

812
jobs:
913
analyze:
10-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1115
permissions:
12-
# required for all workflows
1316
security-events: write
14-
# required to fetch internal or private CodeQL packs
1517
packages: read
16-
# only required for workflows in private repositories
1718
actions: read
1819
contents: read
1920

@@ -25,7 +26,9 @@ jobs:
2526
steps:
2627
- name: Checkout repository
2728
uses: actions/checkout@v4
28-
29+
with:
30+
ref: 'develop'
31+
2932
- name: Checkout dependency repository (xengine)
3033
uses: actions/checkout@v4
3134
with:
@@ -40,7 +43,7 @@ jobs:
4043
- name: Set up Dependency Environment
4144
run: |
4245
cd libxengine
43-
chmod 777 *
46+
chmod +x ./XEngine_LINEnv.sh
4447
sudo ./XEngine_LINEnv.sh -i 3
4548
4649
- name: Initialize CodeQL
@@ -56,4 +59,4 @@ jobs:
5659
- name: Perform CodeQL Analysis
5760
uses: github/codeql-action/analyze@v3
5861
with:
59-
category: "/language:${{matrix.language}}"
62+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)