From 831f76f4e2089e19ba96f99771bfcc796e057394 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sat, 28 Sep 2024 08:19:20 -0300 Subject: [PATCH] ci: codeql: use matrix for language --- .github/workflows/check-c.yml | 7 +++++-- .github/workflows/check-python.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-c.yml b/.github/workflows/check-c.yml index 590bf86c0b..d8b6adcc29 100644 --- a/.github/workflows/check-c.yml +++ b/.github/workflows/check-c.yml @@ -140,6 +140,9 @@ jobs: security-events: write runs-on: ubuntu-latest timeout-minutes: 10 + strategy: + matrix: + language: [ cpp ] steps: - name: Harden Runner @@ -163,7 +166,7 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 with: - languages: cpp + languages: ${{ matrix.language }} - name: configure run: ./configure @@ -174,4 +177,4 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 with: - category: "/language:cpp" + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/check-python.yml b/.github/workflows/check-python.yml index 9484402279..70ff350e8a 100644 --- a/.github/workflows/check-python.yml +++ b/.github/workflows/check-python.yml @@ -28,6 +28,9 @@ jobs: security-events: write runs-on: ubuntu-latest timeout-minutes: 10 + strategy: + matrix: + language: [ python ] steps: - name: Harden Runner @@ -53,9 +56,9 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 with: - languages: python + languages: ${{ matrix.language }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 with: - category: "/language:python" + category: "/language:${{ matrix.language }}"