Azure Pipelines: I am getting fatal: could not read Username for 'https://github.com': terminal prompts disabled

前端 未结 4 1178
一向
一向 2021-01-02 08:02

I have powershell task configured in azure build pipelines to merge changes from dev into master of my github public repo and push changes to master. I am getting

4条回答
  •  离开以前
    2021-01-02 08:05

    For private projects the azure devops build VM doesn't have permission to clone your submodules. In order to give it permission to clone you can either add your username and password or add a personal access token(PAT) to the url in the gitmodules file in your repo on Azure devops. You need to change the url to https://username:password@dev.azure.com/organization/project/_git/repo or https://PAT@dev.azure.com/organization/project/_git/repo

    I recommend using a PAT. You can create a PAT in Azure DevOps just look up how to do it.

提交回复
热议问题