diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b63ee55cb..e00b9c8d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,10 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip + # Upgrade setuptools too: the runner's Python toolcache ships an old + # setuptools that trips pip-audit (PYSEC-2026-3447, fixed in 83.0.0). + # A fix exists, so we upgrade rather than --ignore-vuln. + python -m pip install --upgrade pip setuptools pip install -r requirements.txt pip install pip-audit diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 41b07f726..9d7236a80 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -125,7 +125,10 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip + # Upgrade setuptools too: the runner's Python toolcache ships an old + # setuptools that trips pip-audit (PYSEC-2026-3447, fixed in 83.0.0). + # A fix exists, so we upgrade rather than --ignore-vuln. + python -m pip install --upgrade pip setuptools pip install -r requirements.txt pip install pip-audit