From d7db070eb95e2a85c639ba653ec1c675cf770531 Mon Sep 17 00:00:00 2001 From: merovingian Date: Mon, 30 Nov 2026 18:22:05 +0200 Subject: [PATCH 1/2] HQD-674: Skip the DockerHub login on pull request builds Pull requests from forks get no repository secrets, so the login failed with "Username and password required" and the build step never ran. Pull request builds do not push, so they need no login; pushes to master and manual runs still log in and push. --- .github/workflows/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ee0fbe1..db2f4e8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -43,6 +43,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to DockerHub + if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} From 6cb02a0a8978413fab6f9f9ee42de5e43713ce4f Mon Sep 17 00:00:00 2001 From: merovingian Date: Mon, 30 Nov 2026 18:40:46 +0200 Subject: [PATCH 2/2] HQD-674: Log in to DockerHub on pull requests from this repository Only pull requests from forks lack the secrets. Branches of this repository keep the login, so their builds pull base images authenticated and are not held to the anonymous rate limit. --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index db2f4e8..3a59da0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -43,7 +43,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to DockerHub - if: ${{ github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }}