Interview Prep/CI/CD/GitHub Actions Failures

`fatal: could not read Username for 'https://github.com': No such device or address` when a job clones a private repo.

IntermediateTroubleshootingGitHub Actions Failures
Answer

Likely causes → GITHUB_TOKEN only covers the current repo; submodules or another private repo are fetched without a token.

Diagnose → Look at which repo the failing git command targets.

Fix → Use actions/checkout with token: from a GitHub App token or deploy key; for submodules set submodules: recursive and a suitable token/ssh-key.

Prevent → Use GitHub App tokens scoped to required repos.

All CI/CD questions

More on GitHub Actions Failures