Reputation: 185
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.
Upvotes: 0
Views: 712
Reputation: 19361
You can try to grant access in Github.
Or click provide access
when creating github yaml pipeline.
Upvotes: 1