Skip to content

Commit 45fd398

Browse files
committed
Add CodeQL to CI sutie
Close #47
1 parent ab7a402 commit 45fd398

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,35 @@ jobs:
7474
- name: Run tests
7575
run: python setup.py test
7676
- run: codecov
77+
78+
analyze:
79+
name: CodeQL Analyze
80+
needs: [ pytest ]
81+
runs-on: ubuntu-latest
82+
permissions:
83+
actions: read
84+
contents: read
85+
security-events: write
86+
87+
strategy:
88+
fail-fast: false
89+
matrix:
90+
language: [ python ]
91+
92+
steps:
93+
- name: Checkout
94+
uses: actions/checkout@v3
95+
96+
- name: Initialize CodeQL
97+
uses: github/codeql-action/init@v2
98+
with:
99+
languages: ${{ matrix.language }}
100+
queries: +security-and-quality
101+
102+
- name: Autobuild
103+
uses: github/codeql-action/autobuild@v2
104+
105+
- name: Perform CodeQL Analysis
106+
uses: github/codeql-action/analyze@v2
107+
with:
108+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)