Skip to content

Benchmark workflow fails during actions/checkout@v6 with "could not read Username for 'https://github.com'" #12446

@mattsu2020

Description

@mattsu2020

Description

The benchmark workflow fails during actions/checkout@v6, before any benchmark code is executed.

The failing step is:

- uses: actions/checkout@v6
  with:
    persist-credentials: false

The log shows that checkout creates a $RUNNER_TEMP credentials config file and adds includeIf.gitdir entries, but the following git fetch still fails:

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +a0d8219bafaec98ac9a5d1f21416ccef7a07df73:refs/remotes/pull/12144/merge
Error: fatal: could not read Username for 'https://github.com': terminal prompts disabled

This seems unrelated to the PR's Rust changes, because the job fails before the repository is checked out.

This may be related to the credential handling changes in actions/checkout@v6, where credentials are stored in a separate $RUNNER_TEMP config file and referenced via includeIf.gitdir.

A similar upstream issue exists here:

https://github.com/actions/checkout/issues/2359

It is not exactly the same scenario, since that issue mainly discusses Docker container actions, while this failure happens during checkout's own git fetch. However, the root cause appears similar: the v6 credential setup is created, but Git does not successfully use it for authentication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions