Skip to content

Commit 4978ded

Browse files
committed
Fix codeql
1 parent 8bef99e commit 4978ded

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- language: actions
4747
build-mode: none
4848
- language: java-kotlin
49-
build-mode: autobuild
49+
build-mode: manual
5050
- language: javascript-typescript
5151
build-mode: none
5252
- language: python
@@ -88,16 +88,19 @@ jobs:
8888
# to build your code.
8989
# ℹ️ Command-line programs to run using the OS shell.
9090
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
91+
- name: Set up JDK
92+
if: matrix.build-mode == 'manual'
93+
uses: actions/setup-java@v4
94+
with:
95+
java-version: '17'
96+
distribution: 'temurin'
97+
9198
- name: Run manual build steps
9299
if: matrix.build-mode == 'manual'
93100
shell: bash
94101
run: |
95-
echo 'If you are using a "manual" build mode for one or more of the' \
96-
'languages you are analyzing, replace this with the commands to build' \
97-
'your code, for example:'
98-
echo ' make bootstrap'
99-
echo ' make release'
100-
exit 1
102+
chmod +x gradlew
103+
./gradlew :app:compileGithubDebugKotlin :lib:compileDebugKotlin --no-daemon
101104
102105
- name: Perform CodeQL Analysis
103106
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)