Skip to content

Commit f213619

Browse files
authored
Add more queries to CodeQL (#2749)
Enables CodeQL to look for more security problems and maintainability/reliability issues
1 parent 12ce9c6 commit f213619

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/codeql-analysis.yml

+2-15
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- main
77
- release-*
88
pull_request:
9-
# The branches below must be a subset of the branches above
109
branches:
1110
- main
1211
- release-*
@@ -38,14 +37,7 @@ jobs:
3837
build-mode: autobuild
3938
- language: javascript-typescript
4039
build-mode: none
41-
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
42-
# Use `c-cpp` to analyze code written in C, C++ or both
43-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
44-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
45-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
46-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
47-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
48-
# 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.
40+
4941
steps:
5042
- name: Checkout repository
5143
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -56,12 +48,7 @@ jobs:
5648
with:
5749
languages: ${{ matrix.language }}
5850
build-mode: ${{ matrix.build-mode }}
59-
# If you wish to specify custom queries, you can do so here or in a config file.
60-
# By default, queries listed here will override any specified in a config file.
61-
# Prefix the list here with "+" to use these queries and those in the config file.
62-
63-
# 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
64-
# queries: security-extended,security-and-quality
51+
queries: security-and-quality
6552

6653
- name: Perform CodeQL Analysis
6754
uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0

0 commit comments

Comments
 (0)