`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`
BeginnerTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → Token has contents: read only (restricted default), the branch is protected and the bot is not allowed to push, or persist-credentials: false removed the credentials.
Diagnose → Check "GITHUB_TOKEN Permissions" in the log and branch protection or rulesets on the target branch.
Fix → permissions: contents: write for that job; push to an unprotected branch and open a PR; or use a GitHub App in the ruleset bypass list.
Prevent → Prefer PR-based automation over direct pushes to protected branches.
More on Permissions, Tokens & Secrets
`Error: Resource not accessible by integration` when a workflow tries to comment on a PR.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`Error: HttpError: Resource not accessible by integration` when uploading SARIF to code scanning.Intermediate