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
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
53
-
# Use `c-cpp` to analyze code written in C, C++ or both
54
-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
55
-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
56
-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
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
-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
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
70
+
- name: Initialize CodeQL
71
+
uses: github/codeql-action/init@v3
72
+
with:
73
+
languages: ${{ matrix.language }}
74
+
build-mode: ${{ matrix.build-mode }}
75
+
source-root: zephyr
85
76
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
77
+
- if: matrix.build-mode == 'manual'
78
+
shell: bash
79
+
run: |
80
+
cd zephyr
81
+
west build -b qemu_x86 samples/hello_world
91
82
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.
101
-
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
104
-
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