Gitlab runner include private template

Hi everyone I’m using GitLab Community on-premise. I’m creating a repository containing CICD templates, and it’s currently private.

Other projects, when needing to set up CICD, only need to include the template in the .gitlab-ci.yml file. My problem is that when the developer merges the code, GitLab CI reports that the template file isn’t found in the template repository. I checked and found that I need to add permissions to that user in the template repository.

Is there a way to avoid adding members to the template project while keeping the project in the private repository?