Skip to content

Security/198 update dependencies #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Build Artifacts
run: poetry build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Check Tag Version
# make sure the pushed/created tag matched the project version
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Check Version(s)
run: poetry run -- nox -s version:check
Expand All @@ -32,12 +32,16 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Build Documentation
run: |
poetry run -- nox -s docs:build

- name: Link Check
run: |
poetry run -- nox -s links:check

build-matrix:
name: Generate Build Matrix
uses: ./.github/workflows/matrix-python.yml
Expand All @@ -55,7 +59,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Run changelog update check
run: poetry run -- nox -s changelog:updated
Expand All @@ -74,7 +78,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -105,7 +109,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -127,7 +131,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -151,7 +155,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Run format check
run: poetry run -- nox -s project:format
Expand Down Expand Up @@ -190,7 +194,7 @@ jobs:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
with:
python-version: ${{ matrix.python-version }}

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: CI

on:
push:
branches-ignore:
- "github-pages/*"
- "gh-pages/*"
- "main"
- "master"
pull_request:
types: [opened, synchronize, reopened]
schedule:
# "At 00:00 on every 7th day-of-month from 1 through 31." (https://crontab.guru)
# At 00:00 on every 7th day-of-month from 1 through 31. (https://crontab.guru)
- cron: "0 0 1/7 * *"

jobs:
Expand All @@ -22,5 +18,6 @@ jobs:
Metrics:
needs: [ CI ]
uses: ./.github/workflows/report.yml
secrets: inherit
permissions:
contents: read
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Build Documentation
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matrix-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Generate matrix
run: poetry run -- nox -s matrix:python
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/merge-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/[email protected]
uses: exasol/python-toolbox/.github/actions/[email protected]
with:
python-version: '3.10'

- name: Allow unprivileged user namespaces
run: |
Expand All @@ -50,7 +52,15 @@ jobs:
SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }}
SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }}
SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }}
run: poetry run -- pytest -rA --setup-show --backend=saas test/integration/test_cloud_storage.py
run: |
poetry run -- coverage run -a --rcfile=pyproject.toml -m pytest -rA --setup-show --backend=saas test/integration/test_cloud_storage.py

- name: Upload Artifacts
uses: actions/[email protected]
with:
name: coverage-python3.10-slow-saas
path: .coverage
include-hidden-files: true

large-runner-tests:
name: Text AI Tests
Expand Down Expand Up @@ -83,9 +93,9 @@ jobs:
sudo rm -rf /opt/ghc

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
with:
poetry-version: 2.1.2
python-version: '3.10'

- name: Allow unprivileged user namespaces
run: |
Expand All @@ -95,7 +105,14 @@ jobs:
env:
TXAIE_PRE_RELEASE_URL: ${{ vars.ZIP_URL }}
TXAIE_PRE_RELEASE_PASSWORD: ${{ secrets.ZIP_PASSWORD }}
run: poetry run -- pytest -rA --setup-show test/integration/test_text_ai_extension_wrapper.py
run: poetry run -- coverage run -a --rcfile=pyproject.toml -m pytest -rA --setup-show test/integration/test_text_ai_extension_wrapper.py

- name: Upload Artifacts
uses: actions/[email protected]
with:
name: coverage-python3.10-slow-text-ai
path: .coverage
include-hidden-files: true

# This job ensures inputs have been executed successfully.
approve-merge:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ jobs:
metrics:
needs: [ ci-job ]
uses: ./.github/workflows/report.yml
secrets: inherit
permissions:
contents: read
7 changes: 6 additions & 1 deletion .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0

- name: Download Artifacts
uses: actions/[email protected]
Expand All @@ -32,6 +32,11 @@ jobs:
- name: Validate Artifacts
run: poetry run -- nox -s artifacts:validate

- name: Upload to sonar
env:
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
run: poetry run -- nox -s sonar:check

- name: Generate Report
run: poetry run -- nox -s project:report -- --format json | tee metrics.json

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ __pycache__/
/.lint.json
/.lint.txt
/.html-documentation/
/.security.json
/.sonar
.build_output
7 changes: 6 additions & 1 deletion doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
* #182: Updated LATEST_KNOWN_VERSION to be dynamically fetched with importlib.metadata for
transformers_extension_wrapper & sagemaker_extension_wrapper

## Security
* #198: Updated requests from >=2.32.0 to >=2.32.4 due to CVE-2024-47081 and
transformers from ^4.50.0 to ^4.52.1 due to CVE-2025-3933 and CVE-2025-3777

## Internal
* Relocked poetry dependencies to resolve CVE-2025-47287 and CVE-2025-47273
* Relocked poetry dependencies to resolve CVE-2025-47287 and CVE-2025-47273
* #198: Relocked poetry dependencies to resolve CVE-2025-50181 and CVE-2025-50182 for transitive dependency urllib3
3 changes: 2 additions & 1 deletion noxconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class Config:
root: Path = ROOT_DIR
doc: Path = ROOT_DIR / "doc"
version_file: Path = ROOT_DIR / "version.py"
source: Path = Path("exasol/nb_connector")
path_filters: Iterable[str] = ("dist", ".eggs", "venv")
python_versions = ["3.10", "3.11", "3.12"]
python_versions: Iterable[str] = ("3.10", "3.11", "3.12")


PROJECT_CONFIG = Config()
Loading