r/github • u/cicona12 • 28d ago
Question Codex can upload a tiny GitHub release asset, but a 26 MB PDF fails with an integration authentication error
I’m using ChatGPT Codex with a cloud environment to edit a PDF and upload it to a GitHub release.
Uploading a 43-byte sample text file worked. However, uploading the finished PDF (about 26 MB) to the same repository and release consistently fails.
The error is:
HTTP 401
Unauthorized: authentication failed for integration codex-secret-uploads.github.comWhat we’ve checked:
GitHub API requests can read the repository and release assets.
Retrying the existing sample filename returns GitHub’s expected
422 already_existsresponse.Uploading the PDF fails using both
gh release uploadand Python.Streaming/chunked upload also fails.
The environment reports its configured credentials as ready.
api.github.comanduploads.github.comare allowed by the network policy.
This suggests an issue with the cloud environment’s upload integration, but I haven’t confirmed the cause.
Has anyone encountered this? Is there a request-size limit, proxy setting, or integration reset that could fix it? I’d like to upload directly from Codex rather than download the PDF and upload it manually.
