GitHub Actions · infra · fg-0224

Adding one permission such as id-token: write makes actions/checkout fail with 'Repository not found'

If you see remote: Repository not found, the cause and the fix for GitHub Actions are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
remote: Repository not found.fatal: repository ... not found during actions/checkout in a private repoOther steps lose access to packages or issues they used before
Cause
As soon as a permissions block lists any scope, every scope not listed is set to none. Adding id-token: write for OIDC silently removes contents: read, which checkout needs on private repositories.
Fix
List every scope the job uses alongside the new one.
Apply
permissions: id-token: write contents: read
Affected
GitHub Actions workflows with a permissions key, private and internal repositories, as of October 2026
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun