Gitea - actions/checkout leads to "fatal: could not read Username..."
09:05 21 Dec 2025

I am trying to do this in my Gitea Action yml file:

jobs: build-and-push:

runs-on: ubuntu-latest

steps:

- name: Checkout code

uses: actions/checkout@v3

And getting this error:

Fetching the repository
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +1cb6ed5c78268e941dec5072f37ed91b1225fc4c:refs/remotes/origin/main
fatal: could not read Username for 'https://git.example.com': terminal prompts disabled
The process '/usr/bin/git' failed with exit code 128
Waiting 10 seconds before trying again
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +1cb6ed5c78268e941dec5072f37ed91b1225fc4c:refs/remotes/origin/main
fatal: could not read Username for 'https://git.example.com': terminal prompts disabled
The process '/usr/bin/git' failed with exit code 128
Waiting 18 seconds before trying again
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +1cb6ed5c78268e941dec5072f37ed91b1225fc4c:refs/remotes/origin/main
fatal: could not read Username for 'https://git.example.com': terminal prompts disabled
::remove-matcher owner=checkout-git::
::error::The process '/usr/bin/git' failed with exit code 128
  ❌  Failure - Main Checkout code
exitcode '1': failure

I have tried to do like this:

jobs: build-and-push:

runs-on: ubuntu-latest

steps:

- name: Checkout code

uses: actions/checkout@v3

with:

token: ${{ secrets.BUILD_GITEA_TOKEN2 }}

But with same result.

I am running:

Gitea 1.25.3 in Windows.
Gitea Runner from Coolify in a Docker. And this is my runner docker-compose:

version: '3.8'
services:
  runner:
    image: 'gitea/act_runner:latest'
    environment:
      - 'GITEA_INSTANCE_URL=https://git.example.com/'
      - GITEA_RUNNER_REGISTRATION_TOKEN=
      - GITEA_RUNNER_NAME=coolify-runner
      - 'GITEA_RUNNER_LABELS=ubuntu-latest:docker://gitea/runner-images:ubuntu-latest'
    volumes:
      - 'runner-data:/data'
      - '/var/run/docker.sock:/var/run/docker.sock'
    restart: always
volumes:
  runner-data: null

It has worked before I updated Gitea in Windows from 1.23.7 to 1.25.3

docker gitea coolify