[BUG] GitHub connector authorized but write operations fail with "403 Resource not accessible by integration

Status Open
Reported on v2.1.239
Maintainer reply None cached
Activity 0 comments · opened Aug 22, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The Claude GitHub integration is connected (shows "Connected" in claude.ai → Settings → Connectors, and "Claude" app authorized under github.com/settings/applications), but every write operation fails identically:

create_or_update_file on an existing repo → 403 Resource not accessible by integration
create_repository (brand new repo) → same 403 Resource not accessible by integration

This is account-wide, not repo-specific — confirmed by testing against a brand-new repo, not just the one I was trying to push to. Read operations (get_file_contents, get_me) work fine.

Already tried: disconnecting/reconnecting the GitHub connector in claude.ai, and fully revoking + re-authorizing "Claude" directly on GitHub's authorized-apps page. No change, no scope/consent screen appeared during re-auth.

What Should Happen?

Claude" GitHub integration isn't currently requesting/receiving write (repo) scope.

Error Messages/Logs

Steps to Reproduce

Connect GitHub in claude.ai → Settings → Connectors (shows as "Connected").
In a Claude Code session, create a new local commit and attempt to push it to a repo owned by the authenticated account (e.g. git push) → fails with 403 and GitHub's own message: Permission to <owner>/<repo>.git denied to <owner>.
Fall back to the GitHub MCP tool create_or_update_file on the same repo/branch → fails with 403 Resource not accessible by integration.
To rule out a repo-specific issue, call create_repository to create a brand-new, unrelated repo on the same account → fails identically with 403 Resource not accessible by integration.
Read operations on the same account work fine throughout (get_me, get_file_contents succeed) — only writes fail.
Attempt to fix via GitHub's UI: disconnect/reconnect the connector in claude.ai, then fully revoke access to "Claude" under github.com/settings/applications and re-authorize from scratch. No scope/permission consent screen is shown during re-authorization, and the same 403 persists afterward.

Expected: write operations (file creation/update, repo creation) succeed for the authenticated account once GitHub is connected.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.239

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗