This attempts to fix the issue reported at https://github.com/openai/codex-action/issues/32. I don't have access to a GHE account, so this is hard to test, but this looks right according to: https://github.com/octokit/octokit.js/blob/45c56ffaa6d1799dd4ebaf83f06a8fc64fc39c49/README.md#L197-L201