Skip to content

Commit 4a05711

Browse files
fix: Update CodeQL workflow for Poetry dependency management
- Add Python 3.10 setup before CodeQL initialization - Install Poetry using snok/install-poetry@v1 action - Install dependencies with poetry install --with dev - Remove autobuild step that doesn't work with Poetry projects
1 parent 58bf252 commit 4a05711

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,27 @@ jobs:
3838
- name: Checkout
3939
uses: actions/checkout@v5
4040

41+
- name: Set up Python
42+
uses: actions/setup-python@v4
43+
with:
44+
python-version: '3.10'
45+
46+
- name: Install Poetry
47+
uses: snok/install-poetry@v1
48+
with:
49+
version: latest
50+
virtualenvs-create: true
51+
virtualenvs-in-project: true
52+
53+
- name: Install dependencies
54+
run: poetry install --with dev
55+
4156
- name: Initialize CodeQL
4257
uses: github/codeql-action/init@v3
4358
with:
4459
languages: ${{ matrix.language }}
4560
queries: +security-and-quality
4661

47-
- name: Autobuild
48-
uses: github/codeql-action/autobuild@v3
49-
5062
- name: Perform CodeQL Analysis
5163
uses: github/codeql-action/analyze@v3
5264
with:

0 commit comments

Comments
 (0)