Skip to content

Commit 7e0a37a

Browse files
committed
ci(setup-python): fix old pip self upgrade
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.
1 parent 39bd41c commit 7e0a37a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/check.yml

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ jobs:
6969
python-version: |
7070
${{ matrix.python-version }}
7171
>=3.11
72+
env:
73+
# Use system CA certs for setup-python's auto upgrade of pip to work
74+
# on older versions (e.g. 3.5) that do not have pypi.org CA certs in
75+
# baseline pip's chain
76+
PIP_CERT: /etc/ssl/certs/ca-certificates.crt
7277
- uses: actions/cache@v3
7378
with:
7479
path: |

0 commit comments

Comments
 (0)