codex - 💡(How to fix) Fix GitHub connector create_issue fails on public repo while authenticated gh succeeds [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21387Fetched 2026-05-07 03:40:45
View on GitHub
Comments
1
Participants
1
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×5commented ×1

The Codex GitHub connector failed to create an issue in a public third-party repository with 403 Resource not accessible by integration, while the same operation succeeded immediately through authenticated gh issue create from the same Codex session and machine.

This is not a user permission failure and not a public-repository limitation. The authenticated user can create the public issue normally. The failure is in the connector write path or in the connector's error handling for that path.

Error Message

This is not a user permission failure and not a public-repository limitation. The authenticated user can create the public issue normally. The failure is in the connector write path or in the connector's error handling for that path. Error code: FORBIDDEN GitHub API error 403: {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/issues/issues#create-an-issue","status":"403"}

  • return a clear connector-specific error that says the GitHub App integration cannot perform this write and that local/user GitHub auth may still work. The connector exposes a generic issue creation tool, attempts the write, and returns GitHub's raw integration error. Without a manual gh retry, this incorrectly looks like the issue cannot be created. This is not reasoning-level dependent. The same class of failure can occur across reasoning levels because the error is produced by the GitHub connector/API auth path, not by model reasoning quality. After the failure, Codex patched its own local cached GitHub plugin skill guidance so future runs do not misclassify this connector error as a user permission problem. The local mitigation says that if issue or issue-comment writes return Resource not accessible by integration, Codex should immediately retry the same public issue/comment operation with authenticated gh when gh auth status succeeds, and should treat a successful gh retry as connector auth-path evidence. No screenshot is attached because the relevant chat includes private user context. The reproducible evidence is the connector error, the successful gh issue create, the created public issue URL, and the version information above.

Root Cause

This is not reasoning-level dependent. The same class of failure can occur across reasoning levels because the error is produced by the GitHub connector/API auth path, not by model reasoning quality.

Fix Action

Fix / Workaround

This issue was co-authored by Jean-Claude Joanna and Codex during a live Codex for macOS session. Codex itself diagnosed the connector failure, performed the successful gh fallback, patched its own local cached GitHub plugin guidance as a workaround, and prepared this report.

Local workaround already applied by Codex

After the failure, Codex patched its own local cached GitHub plugin skill guidance so future runs do not misclassify this connector error as a user permission problem. The local mitigation says that if issue or issue-comment writes return Resource not accessible by integration, Codex should immediately retry the same public issue/comment operation with authenticated gh when gh auth status succeeds, and should treat a successful gh retry as connector auth-path evidence.

Code Example

Error code: FORBIDDEN
GitHub API error 403: {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/issues/issues#create-an-issue","status":"403"}
RAW_BUFFERClick to expand / collapse

Summary

The Codex GitHub connector failed to create an issue in a public third-party repository with 403 Resource not accessible by integration, while the same operation succeeded immediately through authenticated gh issue create from the same Codex session and machine.

This is not a user permission failure and not a public-repository limitation. The authenticated user can create the public issue normally. The failure is in the connector write path or in the connector's error handling for that path.

Co-authorship

This issue was co-authored by Jean-Claude Joanna and Codex during a live Codex for macOS session. Codex itself diagnosed the connector failure, performed the successful gh fallback, patched its own local cached GitHub plugin guidance as a workaround, and prepared this report.

Reproduction

Repository: pluk-inc/markdown-preview

  1. Use the Codex GitHub plugin tool github_create_issue / _create_issue against pluk-inc/markdown-preview.
  2. The connector returns:
Error code: FORBIDDEN
GitHub API error 403: {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/issues/issues#create-an-issue","status":"403"}
  1. Run the equivalent operation with authenticated gh issue create from the same Codex session/machine.
  2. The issue is created successfully:

https://github.com/pluk-inc/markdown-preview/issues/75

Expected behavior

For public issue creation where the authenticated user can create the issue, the GitHub connector should either:

  • use a user-authorized token path that can perform the same public issue write, or
  • return a clear connector-specific error that says the GitHub App integration cannot perform this write and that local/user GitHub auth may still work.

Actual behavior

The connector exposes a generic issue creation tool, attempts the write, and returns GitHub's raw integration error. Without a manual gh retry, this incorrectly looks like the issue cannot be created.

Reasoning-level note

This is not reasoning-level dependent. The same class of failure can occur across reasoning levels because the error is produced by the GitHub connector/API auth path, not by model reasoning quality.

Local workaround already applied by Codex

After the failure, Codex patched its own local cached GitHub plugin skill guidance so future runs do not misclassify this connector error as a user permission problem. The local mitigation says that if issue or issue-comment writes return Resource not accessible by integration, Codex should immediately retry the same public issue/comment operation with authenticated gh when gh auth status succeeds, and should treat a successful gh retry as connector auth-path evidence.

That local self-patch is only a workaround in the local cached plugin guidance. It is not the product fix.

Environment notes

  • Codex macOS app: 26.429.61741
  • App build: 2429
  • codex CLI: 0.128.0-alpha.1
  • Session model configuration: gpt-5.5
  • Session reasoning configuration: observed in this session as high; issue is not reasoning-level dependent
  • GitHub plugin: github@openai-curated
  • Local gh auth status succeeds for the same GitHub account.
  • gh issue create succeeds for the same target repository and issue body.

No screenshot is attached because the relevant chat includes private user context. The reproducible evidence is the connector error, the successful gh issue create, the created public issue URL, and the version information above.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

For public issue creation where the authenticated user can create the issue, the GitHub connector should either:

  • use a user-authorized token path that can perform the same public issue write, or
  • return a clear connector-specific error that says the GitHub App integration cannot perform this write and that local/user GitHub auth may still work.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix GitHub connector create_issue fails on public repo while authenticated gh succeeds [1 comments, 1 participants]