VSTS issues connecting to GHE (HTTP 403)

自古美人都是妖i 提交于 2019-12-24 09:32:46

问题


We haven't changed anything in VSTS (Visual Studio Team Services) and are suddenly getting HTTP 403 errors in our "Get Sources" build step when trying to pull code from GHE (Github enterprise).

2018-01-10T01:45:07.5198700Z remote: Your account is suspended. Please check with your installation administrator. 2018-01-10T01:45:07.5294550Z fatal: unable to access 'https://********:********@ghe-us.ourcompany.com/ourteam/ourservice.git/': The requested URL returned error: 403 2018-01-10T01:45:07.8066190Z ##[error]Git fetch failed with exit code: 128 2018-01-10T01:45:07.8361190Z ##[section]Finishing: Get Sources`

We're using a Github PAT (without username) to authenticate. Someone tried creating a new PAT and that worked.

Why has this stopped working and why did a new PAT fix it?


回答1:


There was a change done a little bit ago which requires accounts reside within a security group be allowed in the front door of the GHE appliance. They've added that account to the group within //IDWeb so replication may take up to 4 hours to fully propagate.

This is likely because the "user" was technically an email-enabled service account.



来源:https://stackoverflow.com/questions/48194939/vsts-issues-connecting-to-ghe-http-403

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!