Skip to content

Commit

Permalink
ci(setup-python): fix old pip self upgrade
Browse files Browse the repository at this point in the history
The certs at disposal of the baseline pip that gets upgrade do not have
a chain to trust the current pypi.org cert on e.g. Python 3.5, yielding:
```
Could not fetch URL https://pypi.python.org/simple/pip/: There was a
problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:728) - skipping
```

Point to the system CA cert bundle to fix.
  • Loading branch information
scop committed May 13, 2024
1 parent 39bd41c commit 7e0a37a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ jobs:
python-version: |
${{ matrix.python-version }}
>=3.11
env:
# Use system CA certs for setup-python's auto upgrade of pip to work
# on older versions (e.g. 3.5) that do not have pypi.org CA certs in
# baseline pip's chain
PIP_CERT: /etc/ssl/certs/ca-certificates.crt
- uses: actions/cache@v3
with:
path: |
Expand Down

0 comments on commit 7e0a37a

Please sign in to comment.