Skip to content

feat: support github enterprise data residency for australia and european union (sweden, netherlands)#454

Merged
rdhar merged 1 commit intoOP5dev:mainfrom
ArkShocer:feature/ghe-eu-au-v4-fix
May 12, 2025
Merged

feat: support github enterprise data residency for australia and european union (sweden, netherlands)#454
rdhar merged 1 commit intoOP5dev:mainfrom
ArkShocer:feature/ghe-eu-au-v4-fix

Conversation

@ArkShocer
Copy link
Copy Markdown
Contributor

This fix allows the action to be run on the new data residency instances (https://github.com/newsroom/press-releases/data-residency-in-the-eu) which github offers for selected customers. New instances come with the following slug COMPANY.ghe.com, because of that, I've made an condition which further checks if the token provided has ghe.com in it's parameters.
Note, I've only tested these changes on the new ghe.com instance, not on a github.com one.

v4 upload

${{ inputs.command == 'plan' && inputs.upload-plan == 'true' && (github.server_url == 'https://github.com' || contains(github.server_url, '.ghe.com')) }}

v3 upload

${{ inputs.command == 'plan' && inputs.upload-plan == 'true' && !(github.server_url == 'https://github.com' || contains(github.server_url, '.ghe.com')) }}

@ArkShocer ArkShocer requested a review from rdhar as a code owner May 12, 2025 18:05
@rdhar rdhar merged commit 95c08e9 into OP5dev:main May 12, 2025
10 checks passed
@rdhar
Copy link
Copy Markdown
Member

rdhar commented May 12, 2025

Happy to see this shipped with v13.4.0 (v13), where your contribution has been credited!

Please consider ⭐ this project, if you or your team find it useful.

GitHub repository stargazers


@ArkShocer BIG thank you for improving GHE support, once again! This area is well-beyond my reach, so your contribution is genuinely appreciated for all Enterprise users of this action.

Out of curiosity, as a repeat-contributor, does it make it easier or harder that TF-via-PR is composed in Bash/shell rather than more typical Type/JavaScript?

@ArkShocer
Copy link
Copy Markdown
Contributor Author

@rdhar Happy to help 😄 I think the majority of the people who would use the action probably know more bash than Type/JavaScript, so I see no issue having it in bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants