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
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
18
+
# Consider using larger runners or machines with greater resources for possible
19
+
# analysis time improvements.
19
20
runs-on: ubuntu-latest
20
21
permissions:
21
-
#required for all workflows
22
+
#Required for all workflows:
22
23
security-events: write
23
24
24
-
#required to fetch internal or private CodeQL packs
25
+
#Required to fetch internal or private CodeQL packs:
25
26
packages: read
26
27
27
-
#only required for workflows in private repositories
28
+
#Only required for workflows in private repositories:
28
29
actions: read
29
30
contents: read
30
31
@@ -36,49 +37,25 @@ jobs:
36
37
build-mode: none
37
38
- language: python
38
39
build-mode: none
39
-
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
40
-
# Use `c-cpp` to analyze code written in C, C++ or both
41
-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
42
-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
43
-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
44
-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
45
-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
46
-
# 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
40
steps:
48
41
- name: Checkout repository
49
42
uses: actions/checkout@v4
50
43
51
-
# Add any setup steps before running the `github/codeql-action/init` action.
52
-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
53
-
# or others). This is typically only required for manual builds.
54
-
# - name: Setup runtime (example)
55
-
# uses: actions/setup-example@v1
56
-
57
44
# Initializes the CodeQL tools for scanning.
58
45
- name: Initialize CodeQL
59
46
uses: github/codeql-action/init@v4
60
47
with:
61
48
languages: ${{ matrix.language }}
62
49
build-mode: ${{ matrix.build-mode }}
63
-
# If you wish to specify custom queries, you can do so here or in a config file.
64
-
# By default, queries listed here will override any specified in a config file.
65
-
# Prefix the list here with "+" to use these queries and those in the config file.
66
-
67
-
# 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
68
-
# queries: security-extended,security-and-quality
69
50
70
-
# If the analyze step fails for one of the languages you are analyzing with
71
-
# "We were unable to automatically build your code", modify the matrix above
72
-
# to set the build mode to "manual" for that language. Then modify this step
73
-
# to build your code.
74
-
# ℹ️ Command-line programs to run using the OS shell.
75
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
51
+
# See https://docs.github.com/en/enterprise-server@3.16/code-security/how-tos/scan-code-for-vulnerabilities/manage-your-configuration/codeql-code-scanning-for-compiled-languages#using-multiple-build-modes-in-a-multi-language-repository
76
52
- name: Run manual build steps
53
+
77
54
if: matrix.build-mode == 'manual'
78
55
shell: bash
79
56
run: |
80
-
echo 'If you are using a "manual" build mode for one or more of the' \
81
-
'languages you are analyzing, replace this with the commands to build' \
57
+
echo 'If you are using a "manual" build mode for one or more of the' \
58
+
'languages you are analyzing, replace this with the commands to build' \
0 commit comments