diff --git a/.github/workflows/sync-requirements-for-python-dep-upgrade-pr.yml b/.github/workflows/sync-requirements-for-python-dep-upgrade-pr.yml index 3fd44b7a510..c62315bf876 100644 --- a/.github/workflows/sync-requirements-for-python-dep-upgrade-pr.yml +++ b/.github/workflows/sync-requirements-for-python-dep-upgrade-pr.yml @@ -32,17 +32,20 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} persist-credentials: true - - name: Setup Python + # Authenticate the Docker daemon so the python:slim pull in + # uv-pip-compile.sh uses our (much higher) authenticated rate limit + # instead of the shared-runner anonymous one. Best-effort: on fork PRs the + # secrets are unavailable, so this no-ops and the pull falls back to + # anonymous (covered by the retry loop in the script). + - name: Login to Docker Hub if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'pip' }} - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + continue-on-error: true + uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 with: - python-version-file: 'pyproject.toml' + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Install uv - if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'pip' }} - run: pip install uv - - - name: Sync requirements + - name: Sync requirements in containerized environment if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'pip' }} run: ./scripts/uv-pip-compile.sh