You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/codeql.yml
+8-15Lines changed: 8 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -75,29 +75,22 @@ jobs:
75
75
uses: github/codeql-action/init@v3
76
76
with:
77
77
languages: ${{ matrix.language }}
78
-
build-mode: ${{ matrix.build-mode }}
78
+
build-mode: ${{ matrix.mode }}
79
79
# If you wish to specify custom queries, you can do so here or in a config file.
80
80
# By default, queries listed here will override any specified in a config file.
81
81
# Prefix the list here with "+" to use these queries and those in the config file.
82
82
83
83
# 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
84
84
# queries: security-extended,security-and-quality
85
85
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'
94
89
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
0 commit comments