Skip to content

"fatal: could not read Username for 'http://gitea.example.com:22827': terminal prompts disabled" in gitea-runner since v6.19.1 #1457

Closed

Description

@3ligriv

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

On my private Gitea (alternative to Github), updating build-push-action to versions 6.19.0 or 6.19.1 gives the following errors:

#1 0.007 fatal: could not read Username for 'http://10.0.0.5:22827': terminal prompts disabled
#1 ERROR: failed to fetch remote http://10.0.0.5:22827/owner/ssh-audit.git: git stderr:
fatal: could not read Username for 'http://10.0.0.5:22827': terminal prompts disabled
: exit status 128

Both versions give the same errors.
Version 6.18.0 works still fine.

Expected behaviour

This action should be usable on Github alternatives like Gitea.

Actual behaviour

Error when trying to read a local repository.

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Custom image
run-name: "${{ gitea.actor }}: building image and putting ${{ gitea.repository }}"
on:
  pull_request:
    types: [opened, synchronize, reopened]
  push:
    branches:
      - main

jobs:
  build_image:
    runs-on: ubuntu-latest
    name: Docker build
    steps:
      - name: Login
        uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
        with:
          registry: gitea.example.com
          username: ${{ vars.DOCKER_LOGIN }}
          password: ${{ secrets.DOCKER_PASSWORD }}
      
      - name: Set up QEMU
        uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

      - name: Build and push
        uses: docker/build-push-action@601a80b39c9405e50806ae38af30926f9d957c47 # v6
        with:
          platforms: linux/amd64
          push: true
          tags: |
            gitea.example.com/owner/ssh-audit:latest

Workflow logs

Docker build-1029.log

BuildKit logs


Additional info

No response

Activity

  1. changed the title [-]"fatal: could not read Username for 'http://gitea.example.com:22827': terminal prompts disabled" in gitea-runner since v6.19.0[/-] [+]"fatal: could not read Username for 'http://gitea.example.com:22827': terminal prompts disabled" in gitea-runner since v6.19.1[/+] on Feb 11, 2026
  2. crazy-max commented on Feb 11, 2026

    @crazy-max
    Member
    2026-02-11T20:11:40.5763047Z [command]/usr/bin/docker buildx build --iidfile /tmp/docker-actions-toolkit-luGuOZ/build-iidfile-b83d65f14d.txt --platform linux/amd64 --attest type=provenance,mode=max,builder-id=http://10.0.0.5:22827/owner/ssh-audit/actions/runs/375/attempts/1 --secret id=GIT_AUTH_TOKEN.10.0.0.5,src=/tmp/docker-actions-toolkit-luGuOZ/tmp-538-vzLfJ8q5LWa7 --tag gitea.example.com/owner/ssh-audit:latest --metadata-file /tmp/docker-actions-toolkit-luGuOZ/build-metadata-e97ae228cb.json --push http://10.0.0.5:22827/owner/ssh-audit.git#refs/pull/21/head
    

    id=GIT_AUTH_TOKEN.10.0.0.5

    Looking at the logs it seems to solve the host without port which would not match when cloning the repo. I guess we need to add support to it. In the meantime you can do:

          - name: Build and push
            uses: docker/build-push-action@601a80b39c9405e50806ae38af30926f9d957c47 # v6
            with:
              platforms: linux/amd64
              push: true
              tags: |
                gitea.example.com/owner/ssh-audit:latest
              secrets: |
                GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
  3. added
    kind/bug
    and removed on Feb 11, 2026
  4. crazy-max commented on Feb 12, 2026

    @crazy-max
    Member

    @3ligriv Can you try with:

          -
            name: Build and push
            uses: crazy-max/docker-build-push-action@git-auth-port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions