A credential template exists for `https://github.com/org`, yet new repos under the org still fail with `authentication required`.
IntermediateTroubleshootingRepos, Clusters, Projects & Permissions
Answer
Likely causes → URL mismatch: the template is https://github.com/org but apps use [email protected]:org/... (SSH), or a different host alias like https://www.github.com. Templates match by URL prefix, so protocol and host must match exactly. A labelled repo-creds secret is also required (secret-type: repo-creds).
Diagnose → argocd repocreds list; compare its URL with the exact repoURL in the Application.
Fix → Standardise all repoURLs on one form, or add a template for the other form.
Prevent → Validate repoURL format in CI with a simple lint rule.
More on Repos, Clusters, Projects & Permissions
Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.BeginnerAn SSH repo fails with `ssh: handshake failed: knownhosts: key is unknown`.BeginnerSSH repo: `ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain`.BeginnerA self-hosted GitLab repo fails with `x509: certificate signed by unknown authority`.IntermediateSync fails with `application repo https://github.com/org/payments-config.git is not permitted in project 'team-a'`.Beginner`application destination server 'https://kubernetes.default.svc' and namespace 'payments' do not match any of the allowed destinations in project 'team-a'`.Beginner