Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repos, Clusters, Projects & Permissions