[PR #995] [CLOSED] Set default GIT_TERMINAL_PROMPT env var to disable git prompts #1720

Closed
opened 2026-03-01 21:52:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/995
Author: @sosedoff
Created: 2/13/2022
Status: Closed

Base: masterHead: disable-git-terminal-prompts


📝 Commits (1)

  • 024b0a3 Set default GIT_TERMINAL_PROMPT env var to disable git prompts

📊 Changes

1 file changed (+15 additions, -1 deletions)

View changed files

📝 cmd/root.go (+15 -1)

📄 Description

I've recently hit the same issue as https://github.com/nektos/act/issues/977 - act hangs when project needs to pull a private repo. While there are a few ways to go about fixing the access (configure github tokem, setup creds, use ssh endpoint, etc), we should def drop any git prompts as the act environment is not interactive.

With this PR, act will error out with fatal: could not read Username for 'https://github.com': terminal prompts disabled message.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/995 **Author:** [@sosedoff](https://github.com/sosedoff) **Created:** 2/13/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `disable-git-terminal-prompts` --- ### 📝 Commits (1) - [`024b0a3`](https://github.com/nektos/act/commit/024b0a327d0b73d2e278b604a7749d6f7a48b8c7) Set default GIT_TERMINAL_PROMPT env var to disable git prompts ### 📊 Changes **1 file changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/root.go` (+15 -1) </details> ### 📄 Description I've recently hit the same issue as https://github.com/nektos/act/issues/977 - `act` hangs when project needs to pull a private repo. While there are a few ways to go about fixing the access (configure github tokem, setup creds, use ssh endpoint, etc), we should def drop any git prompts as the act environment is not interactive. With this PR, `act` will error out with ```fatal: could not read Username for 'https://github.com': terminal prompts disabled``` message. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:52:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1720
No description provided.