plugin-rest-endpoint-methods.js icon indicating copy to clipboard operation
plugin-rest-endpoint-methods.js copied to clipboard

[BUG]: Release Artifact upload on GHES not possible

Open lure8225 opened this issue 4 months ago • 1 comments

What happened?

When trying to upload via GitHub Script via uploadReleaseAsset I get an ECONNREFUSED as my GHA runner is isolated from the internet and can only reach my GHES instance.

It should upload to my GHES instance but it seems like the default baseURL is overwritten for this. https://github.com/octokit/plugin-rest-endpoint-methods.js/blob/4196f0183b99d09d72f8d97e26ca9c965c24b069/src/generated/endpoints.ts#L1861

via this commit https://github.com/octokit/plugin-rest-endpoint-methods.js/commit/4abd16e40dd46611082fa5cd48d30528f5d94245

Versions

which ever version is included in actions/github-script@v6 however I can see the same code on the main branch right now

Relevant log output

Unhandled error: HttpError: request to https://uploads.github.com/repos/XXXX/XXXX/releases/3280/assets?name=XXXXX_1.33.0_all.deb&label=Binary%20Debian%20package%20%28%F0%9F%90%A7%29 failed, reason: connect ECONNREFUSED 140.82.121.14:443

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

lure8225 avatar Aug 20 '25 16:08 lure8225

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

github-actions[bot] avatar Aug 20 '25 16:08 github-actions[bot]