From 7283722e65b2f88cca5a731a6797e34e7a6b1e79 Mon Sep 17 00:00:00 2001 From: michael-hawker <24302614+michael-hawker@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:28:17 -0700 Subject: [PATCH] Add CodeQL Config file to enable additional queries for Security --- .github/codeql/codeql-config.yml | 7 +++++++ .github/workflows/codeql.yml | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .github/codeql/codeql-config.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 00000000..d52973fc --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,7 @@ +name: "Security and Quality" + +queries: + - name: Queries from security-extended, plus maintainability and reliability queries + uses: security-and-quality + - name: Queries from the default suite, plus lower severity and precision queries + uses: security-extended \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d1a733c4..d63eba34 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -79,12 +79,13 @@ jobs: uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} + config-file: ./.github/codeql/codeql-config.yml # 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. # 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: +security-extended,security-and-quality - name: MSBuild run: >