diff --git a/.github/workflows/sensing-server-docker.yml b/.github/workflows/sensing-server-docker.yml index 0a1215c1..02b0c766 100644 --- a/.github/workflows/sensing-server-docker.yml +++ b/.github/workflows/sensing-server-docker.yml @@ -61,11 +61,16 @@ jobs: - uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - registry: docker.io - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + # Bypassing docker/login-action@v3: the action kept emitting + # "malformed HTTP Authorization header" against a known-good + # dckr_pat_* token (verified by direct curl against the Hub API). + # `docker login --password-stdin` is the documented credential + # path and avoids whatever encoding step the action injects. + env: + DH_USER: ${{ secrets.DOCKERHUB_USERNAME }} + DH_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + run: | + printf '%s' "$DH_TOKEN" | docker login docker.io -u "$DH_USER" --password-stdin - name: Log in to ghcr.io uses: docker/login-action@v3