: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
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.ymlindex 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.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -402,6 +403,7 @@ jobs:fi- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-ai.yml b/.github/workflows/ci-ai.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -1467,6 +1468,7 @@ jobs:continue-on-error: true- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -2160,6 +2162,7 @@ jobs:continue-on-error: true- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-dagster.yml b/.github/workflows/ci-dagster.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -616,6 +617,7 @@ jobs:continue-on-error: true- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-replay-vision-evals.yml b/.github/workflows/ci-replay-vision-evals.ymlindex 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: trueif: steps.gate.outputs.enabled == 'true' && env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != ''uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.ymlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -602,6 +603,7 @@ jobs:clean: false- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yamlindex 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: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -193,6 +196,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -227,6 +231,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -264,6 +269,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -303,6 +309,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -339,6 +346,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -393,6 +401,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -472,6 +481,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:@@ -506,6 +516,7 @@ jobs:steps:- name: Log in to Docker Hub+ continue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:diff --git a/.github/workflows/pr-autoresolve-conflicts.yml b/.github/workflows/pr-autoresolve-conflicts.ymlindex 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: trueif: steps.merge.outputs.skip != 'true' && steps.merge.outputs.needs_backend == 'true'uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0with: