Skip to content

Commit 2a64b97

Browse files
authored
Security/640 resolve vulnerability with pip (#641)
* Re-lock dependencies to resolve CVE-2025-8869 for transitive dependency pip * Update workflows to PTB 1.12.0 * Use BaseConfig for Config from PTB 1.12.0 * Reverse pytest from 8.4.2 to 7.4.4 as leads to uses with test:sqla - This is a dev dependency, and we did not update the pyproject.toml. We will see if sqlalchemy 2.x migration resolves the issue. If not, then an issue can be created to look into this.
1 parent a01325a commit 2a64b97

File tree

13 files changed

+2430
-1432
lines changed

13 files changed

+2430
-1432
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write
1616
steps:
1717
- name: SCM Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919

2020
- name: Setup Python & Poetry Environment
2121
uses: exasol/python-toolbox/.github/actions/python-environment@v1

.github/workflows/check-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
contents: read
1313
steps:
1414
- name: SCM Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616

1717
- name: Setup Python & Poetry Environment
1818
uses: exasol/python-toolbox/.github/actions/python-environment@v1

.github/workflows/checks.yml

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: read
1212
steps:
1313
- name: SCM Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0
1717

@@ -29,7 +29,7 @@ jobs:
2929
contents: read
3030
steps:
3131
- name: SCM Checkout
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3333

3434
- name: Setup Python & Poetry Environment
3535
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -56,7 +56,7 @@ jobs:
5656
if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
5757
steps:
5858
- name: SCM Checkout
59-
uses: actions/checkout@v4
59+
uses: actions/checkout@v5
6060

6161
- name: Setup Python & Poetry Environment
6262
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -75,7 +75,7 @@ jobs:
7575
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
7676
steps:
7777
- name: SCM Checkout
78-
uses: actions/checkout@v4
78+
uses: actions/checkout@v5
7979

8080
- name: Setup Python & Poetry Environment
8181
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -86,7 +86,7 @@ jobs:
8686
run: poetry run -- nox -s lint:code
8787

8888
- name: Upload Artifacts
89-
uses: actions/upload-artifact@v4.6.2
89+
uses: actions/upload-artifact@v5
9090
with:
9191
name: lint-python${{ matrix.python-version }}
9292
path: |
@@ -106,7 +106,7 @@ jobs:
106106

107107
steps:
108108
- name: SCM Checkout
109-
uses: actions/checkout@v4
109+
uses: actions/checkout@v5
110110

111111
- name: Setup Python & Poetry Environment
112112
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -128,7 +128,7 @@ jobs:
128128

129129
steps:
130130
- name: SCM Checkout
131-
uses: actions/checkout@v4
131+
uses: actions/checkout@v5
132132

133133
- name: Setup Python & Poetry Environment
134134
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -139,7 +139,7 @@ jobs:
139139
run: poetry run -- nox -s lint:security
140140

141141
- name: Upload Artifacts
142-
uses: actions/upload-artifact@v4.6.2
142+
uses: actions/upload-artifact@v5
143143
with:
144144
name: security-python${{ matrix.python-version }}
145145
path: .security.json
@@ -152,17 +152,33 @@ jobs:
152152
contents: read
153153
steps:
154154
- name: SCM Checkout
155-
uses: actions/checkout@v4
155+
uses: actions/checkout@v5
156156

157157
- name: Setup Python & Poetry Environment
158158
uses: exasol/python-toolbox/.github/actions/python-environment@v1
159159

160160
- name: Run format check
161161
run: poetry run -- nox -s project:format
162162

163+
Build-Packages:
164+
name: Build Package Check
165+
needs: [ Documentation, Lint, Type-Check, Security, Format ]
166+
runs-on: ubuntu-24.04
167+
permissions:
168+
contents: read
169+
steps:
170+
- name: SCM Checkout
171+
uses: actions/checkout@v5
172+
173+
- name: Setup Python & Poetry Environment
174+
uses: exasol/python-toolbox/.github/actions/python-environment@v1
175+
176+
- name: Run Distribution Check
177+
run: poetry run -- nox -s package:check
178+
163179
Tests:
164180
name: Unit-Tests (Python-${{ matrix.python-version }})
165-
needs: [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
181+
needs: [ Build-Packages, build-matrix ]
166182
runs-on: ubuntu-24.04
167183
permissions:
168184
contents: read
@@ -172,7 +188,7 @@ jobs:
172188

173189
steps:
174190
- name: SCM Checkout
175-
uses: actions/checkout@v4
191+
uses: actions/checkout@v5
176192

177193
- name: Setup Python & Poetry Environment
178194
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -185,7 +201,7 @@ jobs:
185201
poetry run -- nox -s test:unit -- --coverage
186202
187203
- name: Upload Artifacts
188-
uses: actions/upload-artifact@v4.6.2
204+
uses: actions/upload-artifact@v5
189205
with:
190206
name: coverage-python${{ matrix.python-version }}-fast
191207
path: .coverage

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
contents: read
1313
steps:
1414
- name: SCM Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616
with:
1717
fetch-depth: 0
1818

.github/workflows/matrix-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: read
1515
steps:
1616
- name: SCM Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818

1919
- name: Setup Python & Poetry Environment
2020
uses: exasol/python-toolbox/.github/actions/python-environment@v1

.github/workflows/matrix-exasol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: read
1515
steps:
1616
- name: SCM Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818

1919
- name: Setup Python & Poetry Environment
2020
uses: exasol/python-toolbox/.github/actions/python-environment@v1

.github/workflows/matrix-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: read
1515
steps:
1616
- name: SCM Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818

1919
- name: Setup Python & Poetry Environment
2020
uses: exasol/python-toolbox/.github/actions/python-environment@v1

.github/workflows/report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414

1515
steps:
1616
- name: SCM Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Setup Python & Poetry Environment
2222
uses: exasol/python-toolbox/.github/actions/python-environment@v1
2323

2424
- name: Download Artifacts
25-
uses: actions/download-artifact@v5.0.0
25+
uses: actions/download-artifact@v6
2626
with:
2727
path: ./artifacts
2828

@@ -41,7 +41,7 @@ jobs:
4141
run: poetry run -- nox -s project:report -- --format json | tee metrics.json
4242

4343
- name: Upload Artifacts
44-
uses: actions/upload-artifact@v4.6.2
44+
uses: actions/upload-artifact@v5
4545
with:
4646
name: metrics.json
4747
path: metrics.json

.github/workflows/slow-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions:
1111
contents: read
1212

13-
Tests:
13+
tests:
1414
name: Integration-Tests (${{matrix.connector}}, Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
1515
needs: [ build-matrix ]
1616
runs-on: ubuntu-24.04
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: SCM Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828

2929
- name: Setup Python & Poetry Environment
3030
uses: exasol/python-toolbox/.github/actions/python-environment@v1
@@ -40,7 +40,7 @@ jobs:
4040
poetry run -- nox -s test:integration -- --coverage --db-version ${{ matrix.exasol-version }}
4141
4242
- name: Upload Artifacts
43-
uses: actions/upload-artifact@v4.6.2
43+
uses: actions/upload-artifact@v5
4444
with:
4545
name: coverage-python${{ matrix.python-version }}-${{matrix.connector}}-exasol${{ matrix.exasol-version }}slow
4646
path: .coverage

doc/changes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ This allows us to use the latest dependencies, which do not have open vulnerabil
2424
- Reformatted files to meet project specifications
2525
- #588: Updated to exasol-toolbox 1.6.0 and relocked dependencies to resolve CVE-2025-50182, CVE-2025-50181, & CVE-2024-47081
2626
- #605: Removed non-ASCII unicode from templates & relocked dependencies to resolve CVE-2025-8869 (pip -> transitive dependency)
27+
- #640: Re-locked dependencies to resolve CVE-2025-8869 for transitive dependency pip

0 commit comments

Comments
 (0)