Skip to content

Commit

Permalink
ci: codeql: use matrix for language
Browse files Browse the repository at this point in the history
  • Loading branch information
kmk3 committed Sep 28, 2024
1 parent 1f98d10 commit 831f76f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ jobs:
security-events: write
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
language: [ cpp ]

steps:
- name: Harden Runner
Expand All @@ -163,7 +166,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93
with:
languages: cpp
languages: ${{ matrix.language }}

- name: configure
run: ./configure
Expand All @@ -174,4 +177,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93
with:
category: "/language:cpp"
category: "/language:${{ matrix.language }}"
7 changes: 5 additions & 2 deletions .github/workflows/check-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
security-events: write
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
language: [ python ]

steps:
- name: Harden Runner
Expand All @@ -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 }}"

0 comments on commit 831f76f

Please sign in to comment.