File tree Expand file tree Collapse file tree 2 files changed +22
-47
lines changed Expand file tree Collapse file tree 2 files changed +22
-47
lines changed Original file line number Diff line number Diff line change 1
- name : Run build
1
+ name : Run build and Github CodeQL
2
2
3
3
on :
4
4
pull_request :
@@ -15,11 +15,32 @@ jobs:
15
15
build :
16
16
runs-on : ubuntu-latest
17
17
timeout-minutes : 30
18
+ permissions :
19
+ security-events : write
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ include :
24
+ - language : java-kotlin
25
+ build-mode : manual
18
26
19
27
steps :
20
28
- uses : actions/checkout@v4
21
29
22
30
- uses : ./.github/actions/setup-java
31
+ if : matrix.language == 'java-kotlin'
32
+
33
+ - name : Initialize CodeQL
34
+ uses : github/codeql-action/init@v3
35
+ with :
36
+ languages : ${{ matrix.language }}
37
+ build-mode : ${{ matrix.build-mode }}
23
38
24
39
- name : Build with Gradle
40
+ if : matrix.language == 'java-kotlin'
25
41
run : ./gradlew assembleDebug --no-daemon --stacktrace
42
+
43
+ - name : Perform CodeQL Analysis
44
+ uses : github/codeql-action/analyze@v3
45
+ with :
46
+ category : " /language:${{matrix.language}}"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments