Skip to content

Commit 866359a

Browse files
committed
fix(codeql): Merge CodeQL workflows to avoid errors in PRs
1 parent 6359af9 commit 866359a

File tree

2 files changed

+8
-34
lines changed

2 files changed

+8
-34
lines changed
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CodeQL Actions Analysis
1+
name: CodeQL Analysis
22

33
on:
44
workflow_dispatch:
@@ -7,13 +7,17 @@ on:
77
- master
88
pull_request:
99
paths:
10+
- "**/*.py"
1011
- ".github/workflows/*.yml"
1112
- ".github/workflows/*.yaml"
1213

1314
jobs:
1415
codeql-analysis:
15-
name: CodeQL Actions Analysis
16+
name: CodeQL ${{ matrix.language }} analysis
1617
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
language: [python, actions]
1721

1822
steps:
1923
- name: Checkout repository
@@ -22,10 +26,10 @@ jobs:
2226
- name: Initialize CodeQL
2327
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
2428
with:
25-
languages: actions
29+
languages: ${{ matrix.language }}
2630
config-file: ./.github/codeql/codeql-config.yml
2731

2832
- name: Run CodeQL Analysis
2933
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
3034
with:
31-
category: "Analysis: Actions"
35+
category: "/language:${{ matrix.language }}"

.github/workflows/codeql_python.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)