Skip to content
Closed
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
23 changes: 23 additions & 0 deletions testdata/scripts/pypi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# this test verifies the certificate generated allows us to connect to pypi.org
exec docker build -qt pypi-updater .

dependabot update go_modules dependabot/cli --updater-image pypi-updater
stderr '200 https://pypi.org:443/'

exec docker rmi -f pypi-updater

-- Dockerfile --
FROM python:3.13-bookworm

RUN apt-get update && apt-get install -y ca-certificates curl python3 python3-pip
RUN python3 -m pip install --upgrade pip && python3 -m pip install requests
RUN useradd dependabot && chgrp dependabot /etc/ssl/certs && chmod g+w /etc/ssl/certs
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

COPY --chown=dependabot --chmod=755 run bin/run

-- run --
#!/usr/bin/env bash

python3 --version
python3 -c 'import requests; requests.get("https://pypi.org")'
Loading