Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): soft-fail docker hub login (#92784)

Raúl Negrón-Oterod4dcbc58e16e
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index 24202f633b61..fe476fc6cb2c 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -88,7 +88,8 @@
# canonical's env.DOCKERHUB_USERNAME / vars.DOCKERHUB_USER because Depot never indirects
# through env:, so canonical's per-job env-scoping (workflow-level -> job-level,
# for the gha-workflow-env-secret Semgrep fix) is depot-exempt. Login is best-effort
-# because these jobs only pull public images and can fall back to anonymous pulls.
+# because these jobs only pull public images and can fall back to anonymous pulls,
+# which canonical relies on too.
# - Path-filter persons-SQL is folded into migrations
# - Snapshot mode matches canonical, but snapshot patch upload/commit is stripped;
# canonical's per-schema-leg patch scoping (legacy legs exclude *.new_events_schema.ambr,
diff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.yml
index 3ffc62645495..a3dfea2cebbd 100644
--- a/.github/workflows/ci-agent-skills.yml
+++ b/.github/workflows/ci-agent-skills.yml
@@ -152,6 +152,7 @@ jobs:
fi
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -402,6 +403,7 @@ jobs:
fi
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-ai.yml b/.github/workflows/ci-ai.yml
index 182a0505a09e..1c9082d761fc 100644
--- a/.github/workflows/ci-ai.yml
+++ b/.github/workflows/ci-ai.yml
@@ -74,6 +74,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index e4ddb09d1719..6a8026077027 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -776,6 +776,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -1467,6 +1468,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -2160,6 +2162,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -2777,6 +2780,7 @@ jobs:
# Copies the fully versioned UDF xml file for use in CI testing
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-dagster.yml b/.github/workflows/ci-dagster.yml
index 34e1985e6dd5..40cb70cf5043 100644
--- a/.github/workflows/ci-dagster.yml
+++ b/.github/workflows/ci-dagster.yml
@@ -477,6 +477,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.yml
index e1c321f7a301..4528cb99dd1d 100644
--- a/.github/workflows/ci-e2e-playwright.yml
+++ b/.github/workflows/ci-e2e-playwright.yml
@@ -698,6 +698,7 @@ jobs:
key: pnpm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 98919914554a..2d804632e789 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -450,6 +450,7 @@ jobs:
run: ./bin/download-mmdb
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml
index f2ad105136e7..5edd7cd44d13 100644
--- a/.github/workflows/ci-nodejs.yml
+++ b/.github/workflows/ci-nodejs.yml
@@ -313,6 +313,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -616,6 +617,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-replay-vision-evals.yml b/.github/workflows/ci-replay-vision-evals.yml
index 25d86e91e698..0b3de057bab3 100644
--- a/.github/workflows/ci-replay-vision-evals.yml
+++ b/.github/workflows/ci-replay-vision-evals.yml
@@ -66,6 +66,7 @@ jobs:
if: steps.gate.outputs.enabled == 'true'
- name: Log in to Docker Hub
+ continue-on-error: true
if: steps.gate.outputs.enabled == 'true' && env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != ''
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml
index 93b2c0653213..54f75728695a 100644
--- a/.github/workflows/ci-rust.yml
+++ b/.github/workflows/ci-rust.yml
@@ -345,6 +345,7 @@ jobs:
continue-on-error: true
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -602,6 +603,7 @@ jobs:
clean: false
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yaml
index f4b447d5ab83..fa7e9e61ad2b 100644
--- a/.github/workflows/ci-security.yaml
+++ b/.github/workflows/ci-security.yaml
@@ -147,7 +147,10 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
+ # The login only lifts the Docker Hub pull rate limit, and anonymous pulls still
+ # work, so every Docker Hub login in CI is best-effort.
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -193,6 +196,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -227,6 +231,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -264,6 +269,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -303,6 +309,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -339,6 +346,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -393,6 +401,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -472,6 +481,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
@@ -506,6 +516,7 @@ jobs:
steps:
- name: Log in to Docker Hub
+ continue-on-error: true
if: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
diff --git a/.github/workflows/pr-autoresolve-conflicts.yml b/.github/workflows/pr-autoresolve-conflicts.yml
index f509eb356f69..d1e340fe0271 100644
--- a/.github/workflows/pr-autoresolve-conflicts.yml
+++ b/.github/workflows/pr-autoresolve-conflicts.yml
@@ -249,6 +249,7 @@ jobs:
# token is visible to this same-repo PR code — same as every backend CI job here — and
# forks never reach this workflow, so there's nothing to isolate it from.
- name: DockerHub login
+ continue-on-error: true
if: steps.merge.outputs.skip != 'true' && steps.merge.outputs.needs_backend == 'true'
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with: