fatal: could not read Password for terminal prompts disabled

1 min read

Summary

I was recently trying to write back remote changes carried out by a build agent as part of a CI-CD task. I came across the following error:

fatal: could not read Password for ‘https://eax360@dev.azure.com’: terminal prompts disabled

The fix to this is straight forward. There are two things that need to be done.

  1. Enable ‘Allow scripts to access the OAuth token’

2. Ensure that both the ‘Project Collection Build Service‘ and “Project Collection Build Service Accounts” are allowed to Contribute, Contribute to pull request, Create branch, Create tag.

The build should succeed and the changes should be written back to your repository.

You must be logged in to post a comment.