Skip to content

Commit 1433773

Browse files
authored
PYTHON-5062 Add GitHub Actions CodeQL scanning (#321)
1 parent 459760f commit 1433773

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/codeql.yml

+10-4
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,7 +36,12 @@ jobs:
3636
packages: read
3737
actions: read
3838
contents: read
39-
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
include:
43+
- language: python
44+
- language: actions
4045
steps:
4146
- name: Checkout repository
4247
uses: actions/checkout@v4
@@ -52,7 +57,7 @@ jobs:
5257
- name: Initialize CodeQL
5358
uses: github/codeql-action/init@v3
5459
with:
55-
languages: python
60+
languages: ${{ matrix.language }}
5661
build-mode: none
5762
# 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
5863
queries: security-extended
@@ -62,10 +67,11 @@ jobs:
6267
- 'test/**'
6368
6469
- shell: bash
70+
if: matrix.language == 'python'
6571
run: |
6672
pip install -e .
6773
6874
- name: Perform CodeQL Analysis
6975
uses: github/codeql-action/analyze@v3
7076
with:
71-
category: "/language:python"
77+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)