Failed to checkout different private repository:

Hi,

I’m trying to checkout different private repository 

steps:
-name: Checkout server
uses: actions/checkout@v1
with:
repository: <account>/<repo>  
token: ${{ secrets.GitHub_PAT }}

But the step fails and I’m getting,

##[error]fatal: could not read Username for ‘https://github.com’: terminal prompts disabled

Please help…

That message indicates that the authentication has failed (in particular, git is trying to prompt you for a username/password, but it cannot do that, since this is a non-interactive session).

Can you double-check the PAT that you’ve provided as the secret?  Can you use that PAT to clone that repository locally?

2 Likes

Thank you for the quick answer…

It is working localy. It seems like some configuration of git…

3 Likes