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.



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