You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"fatal: could not read Username for 'http://gitea.example.com:22827': terminal prompts disabled" in gitea-runner since v6.19.1 #1457
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 imagerun-name: "${{ gitea.actor }}: building image and putting ${{ gitea.repository }}"on:
pull_request:
types: [opened, synchronize, reopened]push:
branches:
- mainjobs:
build_image:
runs-on: ubuntu-latestname: Docker buildsteps:
- name: Loginuses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3with:
registry: gitea.example.comusername: ${{ vars.DOCKER_LOGIN }}password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMUuses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set up Docker Buildxuses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Build and pushuses: docker/build-push-action@601a80b39c9405e50806ae38af30926f9d957c47 # v6with:
platforms: linux/amd64push: truetags: | gitea.example.com/owner/ssh-audit:latest
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
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:
Activity
[-]"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[/+]crazy-max commentedon Feb 11, 2026
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:
crazy-max commentedon Feb 12, 2026
@3ligriv Can you try with:
- name: Build and push uses: crazy-max/docker-build-push-action@git-auth-port