Lesstep
GitHub Actions · Checked November 3, 2026

GitHub Actions: "fatal: could not read Username for 'https://github.com'"

git had no credential for that request, tried to ask for a user name, and there is no one to ask in a CI job. If the line above it says warning: redirecting to, the token was there and git threw it away; that started in October 2026 and is the first section. Without that line, see "Other causes".

What it looks like

warning: redirecting to https://github.com/<org>/<repo>/
fatal: could not read Username for 'https://github.com': terminal prompts disabled

From runner-images #15014. The text after the last colon varies with how git was started: "terminal prompts disabled" with GIT_TERMINAL_PROMPT=0, "No such device or address" without a terminal. A push may add failed to push some refs; git ls-remote adds fatal: expected flush after ref listing.

1. A token in the URL, dropped after a curl security update

No redirect happened. Ubuntu's bug 2171054 explains it:

Where it shows up:

Do not rotate the token first. PX4's sync job failed from October 19, the token was suspected (PX4 #29520), and the real fix needed no new token (PX4 #29528).

What works now

Holding back the curl packages also makes it go away, and leaves the security fix out.

Other causes (no "redirecting to" line)

Telling it apart

See failed jobs from IntelliJ IDEA

Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs and steps, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).

GitHub and GitHub Actions are trademarks of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc. or JetBrains.

More: "Permission to ... denied to github-actions[bot]" · "refusing to allow a GitHub App to create or update workflow" · "The ubuntu-latest label will migrate to Ubuntu 26" · GitHub Actions plugins for IntelliJ IDEA compared · 日本語