From 7e558250fdc390ae6b6310e1854e98f0d4a3e768 Mon Sep 17 00:00:00 2001 From: Zach Date: Thu, 7 May 2026 03:08:21 -0400 Subject: [PATCH] ci(docker): rotate Docker Hub auth secrets for token-based publishing (#1179) --- .github/workflows/publish-nightly.yml | 4 ++-- .github/workflows/publish-release.yml | 4 ++-- docs/MAKING-A-RELEASE.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 37b3805f0..f3249af3d 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -102,8 +102,8 @@ jobs: if: ${{ vars.DOCKERHUB_REGISTRY != '' }} uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Authenticate to GitHub Container Registry uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 3d8c6ee7b..9a09a576c 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -33,8 +33,8 @@ jobs: if: ${{ vars.DOCKERHUB_REGISTRY != '' }} uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Authenticate to GitHub Container Registry uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 diff --git a/docs/MAKING-A-RELEASE.md b/docs/MAKING-A-RELEASE.md index 36fe6d0f8..6ec7d6fc6 100644 --- a/docs/MAKING-A-RELEASE.md +++ b/docs/MAKING-A-RELEASE.md @@ -24,7 +24,7 @@ Before cutting a stable release, make sure: - The commits that should be released are already on `main`. - Those commits follow conventional commit semantics. - `RELEASE_BOT_TOKEN` is configured if branch protection requires more than the default `github.token`. -- `DOCKER_USERNAME` and `DOCKER_PASSWORD` are configured for Docker Hub publishing. +- If `DOCKERHUB_REGISTRY` is set, `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` are configured for Docker Hub publishing. ## What Triggers a Stable Release