From fb0e7fecafa0f0ee2b96030ef21a7cb3d76294ed Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Mon, 8 Jun 2026 18:57:31 -0700 Subject: [PATCH] ci: authenticate Docker Hub pulls for service containers (#40875) Co-authored-by: Claude Code --- .github/workflows/superset-e2e.yml | 16 ++++++++++++++++ .../superset-python-integrationtest.yml | 15 +++++++++++++++ .../workflows/superset-python-presto-hive.yml | 19 +++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/.github/workflows/superset-e2e.yml b/.github/workflows/superset-e2e.yml index c46ad9eb5a0..b8b7c7b0e62 100644 --- a/.github/workflows/superset-e2e.yml +++ b/.github/workflows/superset-e2e.yml @@ -83,6 +83,11 @@ jobs: services: postgres: image: postgres:17-alpine + # Authenticated pulls use our higher Docker Hub rate limit. Empty on + # fork PRs (secrets unavailable) -> runner falls back to anonymous. + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: superset POSTGRES_PASSWORD: superset @@ -90,6 +95,9 @@ jobs: - 15432:5432 redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} ports: - 16379:6379 steps: @@ -193,6 +201,11 @@ jobs: services: postgres: image: postgres:17-alpine + # Authenticated pulls use our higher Docker Hub rate limit. Empty on + # fork PRs (secrets unavailable) -> runner falls back to anonymous. + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: superset POSTGRES_PASSWORD: superset @@ -200,6 +213,9 @@ jobs: - 15432:5432 redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} ports: - 16379:6379 steps: diff --git a/.github/workflows/superset-python-integrationtest.yml b/.github/workflows/superset-python-integrationtest.yml index 4043b9bcb43..591c8a576e4 100644 --- a/.github/workflows/superset-python-integrationtest.yml +++ b/.github/workflows/superset-python-integrationtest.yml @@ -51,6 +51,9 @@ jobs: image: mysql:8.0 # Authenticated pulls use our higher Docker Hub rate limit. Empty on # fork PRs (secrets unavailable) -> runner falls back to anonymous. + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: MYSQL_ROOT_PASSWORD: root ports: @@ -62,6 +65,9 @@ jobs: --health-retries=5 redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} options: --entrypoint redis-server ports: - 16379:6379 @@ -139,6 +145,9 @@ jobs: services: postgres: image: postgres:17-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: superset POSTGRES_PASSWORD: superset @@ -148,6 +157,9 @@ jobs: - 15432:5432 redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} ports: - 16379:6379 steps: @@ -198,6 +210,9 @@ jobs: services: redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} ports: - 16379:6379 steps: diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml index d94675c9913..0a9d02de75d 100644 --- a/.github/workflows/superset-python-presto-hive.yml +++ b/.github/workflows/superset-python-presto-hive.yml @@ -50,6 +50,11 @@ jobs: services: postgres: image: postgres:17-alpine + # Authenticated pulls use our higher Docker Hub rate limit. Empty on + # fork PRs (secrets unavailable) -> runner falls back to anonymous. + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: superset POSTGRES_PASSWORD: superset @@ -59,6 +64,9 @@ jobs: - 15432:5432 presto: image: starburstdata/presto:350-e.6 + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: superset POSTGRES_PASSWORD: superset @@ -68,6 +76,9 @@ jobs: - 15433:8080 redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} ports: - 16379:6379 steps: @@ -114,6 +125,11 @@ jobs: services: postgres: image: postgres:17-alpine + # Authenticated pulls use our higher Docker Hub rate limit. Empty on + # fork PRs (secrets unavailable) -> runner falls back to anonymous. + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: superset POSTGRES_PASSWORD: superset @@ -123,6 +139,9 @@ jobs: - 15432:5432 redis: image: redis:7-alpine + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} ports: - 16379:6379 steps: