0
votes

I have an Azure DevOps Pipeline (YAML), where the projects and templates are stored in separate repositories, both in github. I have a service connection setup to github so that my pipeline can access the repositories that the project references. That works, except it only seems to pick up the version of the repository that existed when the connection was created. Same for repositories that were created afterwords. I had to recreate the connection after adding a repository.

It doesn't seem like a 'Service Connection' should be a static snapshot of a repository, but that is how it is acting. I have errors in the pipeline due to a typo, but after fixing it, I am getting the same error with the same type.

Any idea what is going on here? I am not using the refs property to refer to a specific commit, it should be latest. I've recreated the pipeline as well, and no change.

1
I am confused about this except it only seems to pick up the version of the repository that existed when the connection was created. Same for repositories that were created afterwords. I had to recreate the connection after adding a repository . Can you add some screenshots to illustrate? I created a new repo in github, using the existing service connection will show the new repo. - Hugh Lin
Not get your response for several days, would you please share your latest information about this issue? - Hugh Lin
Hi, sorry. It actually started working after a day. So, after creating that service connection, it didn't recognize changes in the existing repositories. But, the next day, everything started working as expected. I am not sure what the issue was. I actually was not the one who created the connection in this case. Thanks for the response though! - user1279914
Glad to hear this problem is solved, if this problem occurs again, you can try to grant access in Github. - Hugh Lin

1 Answers

1
votes

You can try to grant access in Github.

enter image description here

Or click provide access when creating github yaml pipeline.

enter image description here

enter image description here