`fatal: could not read Username for 'https://github.com': terminal prompts disabled` when cloning a second private repo.
BeginnerTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → GITHUB_TOKEN only covers the current repository; cloning another private repo has no credentials.
Diagnose → Check which repo the failing git clone or actions/checkout targets.
Fix →
- id: app
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_KEY }}
repositories: shared-config
- uses: actions/checkout@v4
with:
repository: devopsshack/shared-config
token: ${{ steps.app.outputs.token }}
path: shared-config
Prevent → Standardize on an org GitHub App for cross-repo access instead of PATs.
More on Permissions, Tokens & Secrets
`Error: Resource not accessible by integration` when a workflow tries to comment on a PR.Beginner`remote: Permission to devopsshack/shack-api.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/devopsshack/shack-api/': The requested URL returned error: 403`BeginnerA secret is empty in the workflow even though it is set in Settings.Beginner`Error: Input required and not supplied: token` on a fork PR.BeginnerReleases created by a workflow do not trigger the `on: release` deploy workflow.Intermediate`Error: HttpError: Resource not accessible by integration` when uploading SARIF to code scanning.Intermediate