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