Skip to content

Commit 730b154

Browse files
authored
Update codeql.yml
1 parent fb54476 commit 730b154

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/codeql.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,22 @@ jobs:
7575
uses: github/codeql-action/init@v3
7676
with:
7777
languages: ${{ matrix.language }}
78-
build-mode: ${{ matrix.build-mode }}
78+
build-mode: ${{ matrix.mode }}
7979
# If you wish to specify custom queries, you can do so here or in a config file.
8080
# By default, queries listed here will override any specified in a config file.
8181
# Prefix the list here with "+" to use these queries and those in the config file.
8282

8383
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
8484
# queries: security-extended,security-and-quality
8585

86-
# If the analyze step fails for one of the languages you are analyzing with
87-
# "We were unable to automatically build your code", modify the matrix above
88-
# to set the build mode to "manual" for that language. Then modify this step
89-
# to build your code.
90-
# ℹ️ Command-line programs to run using the OS shell.
91-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
92-
- if: matrix.build-mode == 'manual'
93-
shell: bash
86+
# Manual build for compiled languages (Java/Kotlin with Maven example)
87+
- name: Build with Maven
88+
if: matrix.language == 'java-kotlin'
9489
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
90+
# Clean and build without running tests (edit as needed)
91+
mvn clean package -DskipTests
92+
# If you want to run tests, remove -DskipTests
93+
# If your repo has a specific Maven profile or submodule, add it here
10194
10295
- name: Perform CodeQL Analysis
10396
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)