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 d015c8a commit 6104b14
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 @@ -129,6 +129,9 @@ jobs:
contents: read
security-events: write
runs-on: ubuntu-latest
strategy:
matrix:
language: [ cpp ]

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

- name: configure
run: ./configure
Expand All @@ -163,4 +166,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923
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 @@ -27,6 +27,9 @@ jobs:
contents: read
security-events: write
runs-on: ubuntu-latest
strategy:
matrix:
language: [ python ]

steps:
- name: Harden Runner
Expand All @@ -52,9 +55,9 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923
with:
languages: python
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923
with:
category: "/language:python"
category: "/language:${{ matrix.language }}"

0 comments on commit 6104b14

Please sign in to comment.