Skip to content

Commit 6a60f04

Browse files
committed
Add CodeQL to CI pipeline
1 parent fad30ad commit 6a60f04

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,30 @@ jobs:
8989
- run: python -m pip install -e .[${{ matrix.extras }}]
9090
- run: python -m pytest
9191
- uses: codecov/codecov-action@v3
92+
93+
analyze:
94+
name: CodeQL
95+
needs: [ PyTest ]
96+
runs-on: ubuntu-latest
97+
permissions:
98+
actions: read
99+
contents: read
100+
security-events: write
101+
strategy:
102+
fail-fast: false
103+
matrix:
104+
language: [ python ]
105+
steps:
106+
- name: Checkout
107+
uses: actions/checkout@v3
108+
- name: Initialize CodeQL
109+
uses: github/codeql-action/init@v2
110+
with:
111+
languages: ${{ matrix.language }}
112+
queries: +security-and-quality
113+
- name: Autobuild
114+
uses: github/codeql-action/autobuild@v2
115+
- name: Perform CodeQL Analysis
116+
uses: github/codeql-action/analyze@v2
117+
with:
118+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)