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
+63-52Lines changed: 63 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,13 @@ name: "CodeQL Advanced"
13
13
14
14
on:
15
15
push:
16
-
branches: [ "main" ]
16
+
branches:
17
+
- "main"
17
18
pull_request:
18
-
branches: [ "main" ]
19
+
branches:
20
+
- "main"
19
21
schedule:
20
-
- cron: '40 8 * * 2'
22
+
- cron: '0 9 1 * *'# At 09:00 AM, on day 1 of the month
21
23
22
24
jobs:
23
25
analyze:
@@ -31,10 +33,8 @@ jobs:
31
33
permissions:
32
34
# required for all workflows
33
35
security-events: write
34
-
35
36
# required to fetch internal or private CodeQL packs
36
37
packages: read
37
-
38
38
# only required for workflows in private repositories
39
39
actions: read
40
40
contents: read
@@ -43,56 +43,67 @@ jobs:
43
43
fail-fast: false
44
44
matrix:
45
45
include:
46
-
- language: c-cpp
47
-
build-mode: autobuild
48
-
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
49
-
# Use `c-cpp` to analyze code written in C, C++ or both
50
-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
51
-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
52
-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
53
-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
54
-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
55
-
# 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
46
+
- language: c-cpp
47
+
build-mode: autobuild
48
+
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
49
+
# Use `c-cpp` to analyze code written in C, C++ or both
50
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
51
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
52
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
53
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
54
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
55
+
# 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
# If you wish to specify custom queries, you can do so here or in a config file.
84
+
# By default, queries listed here will override any specified in a config file.
85
+
# Prefix the list here with "+" to use these queries and those in the config file.
75
86
76
-
# 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
77
-
# queries: security-extended,security-and-quality
87
+
# 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
88
+
# queries: security-extended,security-and-quality
78
89
79
-
# If the analyze step fails for one of the languages you are analyzing with
80
-
# "We were unable to automatically build your code", modify the matrix above
81
-
# to set the build mode to "manual" for that language. Then modify this step
82
-
# to build your code.
83
-
# ℹ️ Command-line programs to run using the OS shell.
84
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
85
-
- if: matrix.build-mode == 'manual'
86
-
shell: bash
87
-
run: |
88
-
echo 'If you are using a "manual" build mode for one or more of the' \
89
-
'languages you are analyzing, replace this with the commands to build' \
90
-
'your code, for example:'
91
-
echo ' make bootstrap'
92
-
echo ' make release'
93
-
exit 1
90
+
# If the analyze step fails for one of the languages you are analyzing with
91
+
# "We were unable to automatically build your code", modify the matrix above
92
+
# to set the build mode to "manual" for that language. Then modify this step
93
+
# to build your code.
94
+
# ℹ️ Command-line programs to run using the OS shell.
95
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
96
+
- if: matrix.build-mode == 'manual'
97
+
shell: bash
98
+
run: |
99
+
echo 'If you are using a "manual" build mode for one or more of the' \
100
+
'languages you are analyzing, replace this with the commands to build' \
0 commit comments