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

@3ligriv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions