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
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
44
-
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
45
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
46
-
45
+
include:
46
+
- language: actions
47
+
build-mode: none
48
+
- language: java-kotlin
49
+
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
50
+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
51
+
# Use `c-cpp` to analyze code written in C, C++ or both
52
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
53
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
54
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
55
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
56
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
57
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
47
58
steps:
48
59
- name: Checkout repository
49
60
uses: actions/checkout@v4
50
61
51
-
- name: set up jdk 17
52
-
uses: actions/setup-java@v4
53
-
with:
54
-
distribution: 'temurin'
55
-
java-version: '17'
56
-
57
-
- name: checkout code
58
-
uses: actions/checkout@v4
62
+
# Add any setup steps before running the `github/codeql-action/init` action.
63
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64
+
# or others). This is typically only required for manual builds.
65
+
# - name: Setup runtime (example)
66
+
# uses: actions/setup-example@v1
59
67
60
68
# Initializes the CodeQL tools for scanning.
61
69
- name: Initialize CodeQL
62
70
uses: github/codeql-action/init@v3
63
71
with:
64
72
languages: ${{ matrix.language }}
73
+
build-mode: ${{ matrix.build-mode }}
65
74
# If you wish to specify custom queries, you can do so here or in a config file.
66
75
# By default, queries listed here will override any specified in a config file.
67
76
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -70,18 +79,21 @@ jobs:
70
79
# queries: security-extended,security-and-quality
71
80
config-file: .github/workflows/codeql-filters.yml
72
81
73
-
74
-
#Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
75
-
#If this step fails, then you should remove it and run the build manually (see below)
76
-
82
+
# If the analyze step fails for one of the languages you are analyzing with
83
+
#"We were unable to automatically build your code", modify the matrix above
84
+
#to set the build mode to "manual" for that language. Then modify this step
85
+
# to build your code.
77
86
# ℹ️ Command-line programs to run using the OS shell.
78
87
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
79
-
80
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
81
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
82
-
83
-
- run: |
84
-
mvn clean package -DskipTests
88
+
- if: matrix.build-mode == 'manual'
89
+
shell: bash
90
+
run: |
91
+
echo 'If you are using a "manual" build mode for one or more of the' \
92
+
'languages you are analyzing, replace this with the commands to build' \
0 commit comments