Skip to content

Commit 831f76f

Browse files
committed
ci: codeql: use matrix for language
1 parent 1f98d10 commit 831f76f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/check-c.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ jobs:
140140
security-events: write
141141
runs-on: ubuntu-latest
142142
timeout-minutes: 10
143+
strategy:
144+
matrix:
145+
language: [ cpp ]
143146

144147
steps:
145148
- name: Harden Runner
@@ -163,7 +166,7 @@ jobs:
163166
- name: Initialize CodeQL
164167
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93
165168
with:
166-
languages: cpp
169+
languages: ${{ matrix.language }}
167170

168171
- name: configure
169172
run: ./configure
@@ -174,4 +177,4 @@ jobs:
174177
- name: Perform CodeQL Analysis
175178
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93
176179
with:
177-
category: "/language:cpp"
180+
category: "/language:${{ matrix.language }}"

.github/workflows/check-python.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
security-events: write
2929
runs-on: ubuntu-latest
3030
timeout-minutes: 10
31+
strategy:
32+
matrix:
33+
language: [ python ]
3134

3235
steps:
3336
- name: Harden Runner
@@ -53,9 +56,9 @@ jobs:
5356
- name: Initialize CodeQL
5457
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93
5558
with:
56-
languages: python
59+
languages: ${{ matrix.language }}
5760

5861
- name: Perform CodeQL Analysis
5962
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93
6063
with:
61-
category: "/language:python"
64+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)