From 8f3871ba5d602aae38764474a8dfdd28133c6654 Mon Sep 17 00:00:00 2001 From: Sourabh Mehta <73165318+soumeh01@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:52:18 +0200 Subject: [PATCH] Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e94758b90..a6c7913ef 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,9 @@ on: - '**/CMakeLists.txt' push: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: analyze: @@ -22,6 +25,10 @@ jobs: actions: read contents: read security-events: write + strategy: + fail-fast: false + matrix: + language: [ 'c-cpp' ] steps: - name: Install packages @@ -36,7 +43,7 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: - languages: cpp + languages: ${{ matrix.language }} queries: security-and-quality - name: Create build folder @@ -50,3 +57,5 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}"