`Error: Resource not accessible by integration` (HTTP 403) when the workflow comments on a PR or pushes a tag.
AdvancedTroubleshootingGitHub Actions Failures
Answer
Likely causes → GITHUB_TOKEN lacks the needed permission, or the event is a fork PR where the token is read-only.
Diagnose → Check the "Set up job" section, which lists GITHUB_TOKEN Permissions; look at the top-level permissions: block.
Fix →
permissions:
contents: write
pull-requests: write
Grant only what is needed, at job level.
Prevent → Start from permissions: contents: read and add per job.
More on GitHub Actions Failures
Workflow never triggers after pushing. No run appears in the Actions tab.Beginner`Error: Process completed with exit code 1.` with no further detail.Beginner`Context access might be invalid: SECRET_NAME` and the secret is empty inside the job.Beginner`Unable to resolve action actions/checkout@v5, unable to find version v5`.Beginner`The workflow is not valid. .github/workflows/ci.yml (Line: 14, Col: 9): Unexpected value 'run'`.Beginner`fatal: could not read Username for 'https://github.com': No such device or address` when a job clones a private repo.Intermediate