Workflows suddenly fail with permission errors across many repos after an org policy change.
IntermediateTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → Org default workflow permissions switched to read-only, and workflows relied on implicit write.
Diagnose → Search for workflows without permissions: that write (push, release, comment).
Fix → Add explicit permissions to affected workflows; do not revert the org default.
Prevent → Before flipping defaults, scan repos and open PRs adding explicit permissions.
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