Skip to content

Commit

Permalink
Update CI/CD: add CodeQL workflow (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Aug 15, 2024
1 parent ae24041 commit 4d970d1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@ jobs:
- name: Run pre-commit
uses: pre-commit/[email protected]

code-ql:
name: CodeQL
needs:
- pre-commit
permissions:
security-events: write
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:python'

test:
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 4d970d1

Please sign in to comment.