title: azure piplines resources template from other github repository
body: <p>I want to create a central point repository with templates for all my rust projects. And in other projects I just wanna add link to them:</p>
  
  <p>here is an example link to my templates repository. You can find them <a href="https://github.com/xoac/rust-azure-pipelines/tree/c1e4f00ed8224ed80a8d66e33c17c2d85a188784" rel="nofollow noreferrer">here</a>.</p>
  
  <pre><code>trigger: ["master"]
  pr: ["master"]
  
  resources:
    repositories:
      - repository: templates
        type: github
        name: xoac/rust-azure-pipelines
  
  # Test top level crate
  - template: azure-test-stable.yml@templates
    parameters:
      name: test_tokio
      displayName: Test tokio
      cross: true
  
  </code></pre>
  
  <p>And I am getting an error <a href="https://dev.azure.com/sylwesterrapala/tokio-fs-stream/_build/results?buildId=17&amp;view=results" rel="nofollow noreferrer">here</a>
  <a href="https://i.stack.imgur.com/7BTaW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7BTaW.png" alt="Error when using templates from other resources"></a></p>
  
  <p>I have found <a href="https://docs.microsoft.com/pl-pl/azure/devops/pipelines/yaml-schema?view=azure-devops&amp;tabs=schema#repository-resource" rel="nofollow noreferrer">here</a> that I need specify service connection.</p>
  
  <blockquote>
    <p>If you choose github as your type, then name is the full name of the GitHub repo including the user or organization. For example, Microsoft/vscode. Also, GitHub repos require a <a href="https://docs.microsoft.com/pl-pl/azure/devops/pipelines/library/service-endpoints?view=azure-devops" rel="nofollow noreferrer">service connection</a> for authorization.</p>
  </blockquote>
  
  <hr>
  
  <ul>
  <li>I don't know what type of connection this should be.   </li>
  <li>I want to make it accessible to everyone who want to use it. </li>
  </ul>