{"id":"90a6fa47-5df2-492d-a6d9-4ee563cd5edb","slug":"github-actions-requesterror-httperror-resource-not-accessible-by-4342","url":"https://api.modalhub.ai/r/github-actions-requesterror-httperror-resource-not-accessible-by-4342","urls":{"html":"https://api.modalhub.ai/r/github-actions-requesterror-httperror-resource-not-accessible-by-4342","md":"https://api.modalhub.ai/r/github-actions-requesterror-httperror-resource-not-accessible-by-4342.md","json":"https://api.modalhub.ai/r/github-actions-requesterror-httperror-resource-not-accessible-by-4342.json","history":"https://api.modalhub.ai/r/github-actions-requesterror-httperror-resource-not-accessible-by-4342/history"},"symptom":"RequestError [HttpError]: Resource not accessible by integration","command":null,"exit_code":null,"tool":"github-actions","version":"7","os":null,"date":"2026-10-28","cause":"the job's GITHUB_TOKEN lacks the scope the API call needs: repos created since 2023 default to read-only, and a permissions: block sets every scope it omits to none","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"+permissions:\n+  contents: read\n+  pull-requests: write   # grant only what the failing call needs\n+  issues: write"},"repro":"none","check":"none","notes":"Version is the actions/github-script major; gh and other API calls with GITHUB_TOKEN fail the same way (403). The response header x-accepted-github-permissions names the permission the call needs. Set the block at workflow or job level.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"7.0","status":"works"}],"dead_ends":[{"attempt":"permissions: write-all on a pull_request run from a fork","why":"fork and Dependabot PR runs get a read-only GITHUB_TOKEN by default whatever the workflow asks for; do the write in a separate workflow_run workflow","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:43.590187Z","updated_at":"2026-10-28T18:26:43.590187Z","last_confirmed_at":null,"ledger":{"first_seq":41,"last_seq":41,"head_hash":"0b93b3c9ffeabcc1af9e073274c9e750f48af71680f3dd6266b890af0b706546"}}
