`actions/checkout` fails with `remote: Repository not found.` on a private repo after adding a job-level `permissions` block.
IntermediateTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → The job block replaced the workflow block and did not include contents: read, so the token cannot read the repo.
Diagnose → "GITHUB_TOKEN Permissions" in the log shows Contents: none.
Fix → Add contents: read to the job's permissions.
Prevent → Remember job-level permissions replace, not merge.
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`Beginner`fatal: could not read Username for 'https://github.com': terminal prompts disabled` when cloning a second private repo.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