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
+50-49Lines changed: 50 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,13 @@ name: "CodeQL Advanced"
13
13
14
14
on:
15
15
push:
16
-
branches: ["main"]
16
+
branches: ["main"]
17
17
pull_request:
18
-
branches: ["main"]
18
+
branches: ["main"]
19
19
schedule:
20
-
- cron: '18 7 * * 4'
20
+
- cron: "18 7 * * 4"
21
21
workflow_dispatch:
22
+
workflow_call: # Allow this workflow to be called by other workflows
22
23
23
24
jobs:
24
25
analyze:
@@ -44,10 +45,10 @@ jobs:
44
45
fail-fast: false
45
46
matrix:
46
47
include:
47
-
- language: actions
48
-
build-mode: none
49
-
- language: javascript-typescript
50
-
build-mode: none
48
+
- language: actions
49
+
build-mode: none
50
+
- language: javascript-typescript
51
+
build-mode: none
51
52
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
52
53
# Use `c-cpp` to analyze code written in C, C++ or both
53
54
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -57,50 +58,50 @@ jobs:
57
58
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
58
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
59
60
steps:
60
-
- name: Checkout repository
61
-
uses: actions/checkout@v4
61
+
- name: Checkout repository
62
+
uses: actions/checkout@v4
62
63
63
-
# Add any setup steps before running the `github/codeql-action/init` action.
64
-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
65
-
# or others). This is typically only required for manual builds.
66
-
# - name: Setup runtime (example)
67
-
# uses: actions/setup-example@v1
68
-
- name: Setup Node.js
69
-
uses: actions/setup-node@v4
70
-
with:
71
-
node-version-file: ".nvmrc"
72
-
cache: "npm"
64
+
# Add any setup steps before running the `github/codeql-action/init` action.
65
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
66
+
# or others). This is typically only required for manual builds.
67
+
# - name: Setup runtime (example)
68
+
# uses: actions/setup-example@v1
69
+
- name: Setup Node.js
70
+
uses: actions/setup-node@v4
71
+
with:
72
+
node-version-file: ".nvmrc"
73
+
cache: "npm"
73
74
74
-
# Initializes the CodeQL tools for scanning.
75
-
- name: Initialize CodeQL
76
-
uses: github/codeql-action/init@v3
77
-
with:
78
-
languages: ${{ matrix.language }}
79
-
build-mode: ${{ matrix.build-mode }}
80
-
# If you wish to specify custom queries, you can do so here or in a config file.
81
-
# By default, queries listed here will override any specified in a config file.
82
-
# Prefix the list here with "+" to use these queries and those in the config file.
75
+
# Initializes the CodeQL tools for scanning.
76
+
- name: Initialize CodeQL
77
+
uses: github/codeql-action/init@v3
78
+
with:
79
+
languages: ${{ matrix.language }}
80
+
build-mode: ${{ matrix.build-mode }}
81
+
# If you wish to specify custom queries, you can do so here or in a config file.
82
+
# By default, queries listed here will override any specified in a config file.
83
+
# Prefix the list here with "+" to use these queries and those in the config file.
83
84
84
-
# 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
85
-
# queries: security-extended,security-and-quality
85
+
# 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
86
+
# queries: security-extended,security-and-quality
86
87
87
-
# If the analyze step fails for one of the languages you are analyzing with
88
-
# "We were unable to automatically build your code", modify the matrix above
89
-
# to set the build mode to "manual" for that language. Then modify this step
90
-
# to build your code.
91
-
# ℹ️ Command-line programs to run using the OS shell.
92
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
93
-
- if: matrix.build-mode == 'manual'
94
-
shell: bash
95
-
run: |
96
-
echo 'If you are using a "manual" build mode for one or more of the' \
97
-
'languages you are analyzing, replace this with the commands to build' \
98
-
'your code, for example:'
99
-
echo ' make bootstrap'
100
-
echo ' make release'
101
-
exit 1
88
+
# If the analyze step fails for one of the languages you are analyzing with
89
+
# "We were unable to automatically build your code", modify the matrix above
90
+
# to set the build mode to "manual" for that language. Then modify this step
91
+
# to build your code.
92
+
# ℹ️ Command-line programs to run using the OS shell.
93
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
94
+
- if: matrix.build-mode == 'manual'
95
+
shell: bash
96
+
run: |
97
+
echo 'If you are using a "manual" build mode for one or more of the' \
98
+
'languages you are analyzing, replace this with the commands to build' \
0 commit comments