Skip to content

Commit 38e88b2

Browse files
authored
PYTHON-5062 Add GitHub Actions CodeQL scanning (#40)
1 parent a4ce93d commit 38e88b2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626

2727
jobs:
2828
analyze:
29-
name: Analyze
29+
name: Analyze ${{ matrix.language }}
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 360
3232
permissions:
@@ -36,6 +36,12 @@ jobs:
3636
packages: read
3737
actions: read
3838
contents: read
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
include:
43+
- language: python
44+
- language: actions
3945

4046
steps:
4147
- name: Checkout repository
@@ -52,7 +58,7 @@ jobs:
5258
- name: Initialize CodeQL
5359
uses: github/codeql-action/init@v3
5460
with:
55-
languages: python
61+
languages: ${{ matrix.language }}
5662
build-mode: none
5763
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5864
queries: security-extended
@@ -62,10 +68,11 @@ jobs:
6268
- 'test/**'
6369

6470
- shell: bash
71+
if: matrix.language == 'python'
6572
run: |
6673
pip install -e .
6774

6875
- name: Perform CodeQL Analysis
6976
uses: github/codeql-action/analyze@v3
7077
with:
71-
category: "/language:python"
78+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)