GIT integration with script templates works only for public libraries

we are creating terraform spec templates configurations from a git repo, we are unable to integrate private repo of my organization.I could only configure public repos and use without any issues. Can you suggest how we can integrate Private repo.Repo is listed under the tab but unable to load configuration
image