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
+62-52Lines changed: 62 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -57,63 +57,73 @@ jobs:
57
57
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
58
58
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
59
59
# 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
west config manifest.group-filter -- +ci,-optional,-hal
84
-
west update -o=--depth=1 -n 2>&1 1> west.update.log || west update -o=--depth=1 -n 2>&1 1> west.update2.log
94
+
# Add any setup steps before running the `github/codeql-action/init` action.
95
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
96
+
# or others). This is typically only required for manual builds.
97
+
# - name: Setup runtime (example)
98
+
# uses: actions/setup-example@v1
85
99
86
-
# Add any setup steps before running the `github/codeql-action/init` action.
87
-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
88
-
# or others). This is typically only required for manual builds.
89
-
# - name: Setup runtime (example)
90
-
# uses: actions/setup-example@v1
100
+
# Initializes the CodeQL tools for scanning.
101
+
- name: Initialize CodeQL
102
+
uses: github/codeql-action/init@v3
103
+
with:
104
+
languages: ${{ matrix.language }}
105
+
build-mode: ${{ matrix.build-mode }}
106
+
source-root: zephyr
107
+
# If you wish to specify custom queries, you can do so here or in a config file.
108
+
# By default, queries listed here will override any specified in a config file.
109
+
# Prefix the list here with "+" to use these queries and those in the config file.
91
110
92
-
# Initializes the CodeQL tools for scanning.
93
-
- name: Initialize CodeQL
94
-
uses: github/codeql-action/init@v3
95
-
with:
96
-
languages: ${{ matrix.language }}
97
-
build-mode: ${{ matrix.build-mode }}
98
-
# If you wish to specify custom queries, you can do so here or in a config file.
99
-
# By default, queries listed here will override any specified in a config file.
100
-
# Prefix the list here with "+" to use these queries and those in the config file.
111
+
# 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
112
+
# queries: security-extended,security-and-quality
101
113
102
-
# 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
103
-
# queries: security-extended,security-and-quality
114
+
# If the analyze step fails for one of the languages you are analyzing with
115
+
# "We were unable to automatically build your code", modify the matrix above
116
+
# to set the build mode to "manual" for that language. Then modify this step
117
+
# to build your code.
118
+
# ℹ️ Command-line programs to run using the OS shell.
119
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
120
+
- if: matrix.build-mode == 'manual'
121
+
shell: bash
122
+
run: |
123
+
west build -b qemu_x86 samples/hello_world
104
124
105
-
# If the analyze step fails for one of the languages you are analyzing with
106
-
# "We were unable to automatically build your code", modify the matrix above
107
-
# to set the build mode to "manual" for that language. Then modify this step
108
-
# to build your code.
109
-
# ℹ️ Command-line programs to run using the OS shell.
110
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
0 commit comments