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