mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #5244] Git commands following actions/checkout@v4 fail with the error: fatal: could not read Username for 'https:/myghinstance': terminal prompts disabled #1266
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1266
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PavelKa on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/5244
Bug report info
Command used with act
Describe issue
Workflow works well if it is run on Github runner for Github Actions. Based on documentation action/clone should persist credentials for subsequent git commands:
The auth token is persisted in the local git config. This enables your scripts to run authenticated git commands. The token is removed during post-job cleanup. Set persist-credentials: false to opt-out.
But as you can see from log git repo is successfully cloned a and git status success, but git fetch origin main fails :
fatal: could not read Username for 'https://redacted': terminal prompts disabled
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
@PavelKa commented on GitHub (Jun 10, 2025):
By default, actions/checkout is skipped, so it is not called in the workflow and authentication is not applied. When the --no-skip-checkout flag is used, the checkout step is performed and subsequent commands do not fail.