From 716be5b5c019e8988a087ca3802edaaf137acc65 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 15:39:28 +0000 Subject: [PATCH] Enable CodeQL security-extended and security-and-quality query packs Run the extended security and code-quality query suites (in addition to the default) for both analyzed languages via a per-language matrix 'queries' field, increasing recall of security and robustness findings. Refs java-helpers/simple-builders#161 Co-Authored-By: Andreas Igel --- .github/workflows/codeql.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e30c65f1..fef91983 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -45,8 +45,10 @@ jobs: include: - language: actions build-mode: none + queries: security-extended,security-and-quality - language: java-kotlin build-mode: autobuild # CodeQL will automatically build the Maven project + queries: security-extended,security-and-quality # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' # Use `c-cpp` to analyze code written in C, C++ or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both @@ -74,12 +76,10 @@ jobs: with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - + # Run the extended security and code-quality query packs (see matrix above) + # in addition to the default suite, for higher-recall security analysis. # 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 - # queries: security-extended,security-and-quality + queries: ${{ matrix.queries }} # If the analyze step fails for one of the languages you are analyzing with # "We were unable to automatically build your code", modify the matrix above