Skip to content

Make Settings.IsHostedServer value consistent with UrlUtil.IsHostedServer#3326

Closed
alixinne wants to merge 1 commit intoactions:mainfrom
alixinne:patch-1
Closed

Make Settings.IsHostedServer value consistent with UrlUtil.IsHostedServer#3326
alixinne wants to merge 1 commit intoactions:mainfrom
alixinne:patch-1

Conversation

@alixinne
Copy link

When running GitHub Enterprise Server with a pool of JIT-configured runners (such as what philips-labs/terraform-aws-github-runner provides), #1199 still occurs. The fix in #1291 uses the "IsHostedServer" property from the settings which is not set by the GHES endpoint for JIT configuration.

This change computes the default value of IsHostedServer from the GitHub server URL, as is already done in lots of other parts of the code to make it consistent.

@alixinne alixinne changed the title Update ConfigurationStore.cs Make Settings.IsHostedServer value consistent with UrlUtil.IsHostedServer Jun 10, 2024
…rver

When running GitHub Enterprise Server with a pool of JIT-configured runners (such as what [philips-labs/terraform-aws-github-runner](https://github.com/philips-labs/terraform-aws-github-runner/) provides), actions#1199 still occurs. The fix in actions#1291 uses the "IsHostedServer" property from the settings which is **not** set by the GHES endpoint for JIT configuration.

This change computes the default value of IsHostedServer from the GitHub server URL, as is already done in [lots of other parts of the code](https://github.com/search?q=repo%3Aactions%2Frunner%20IsHostedServer&type=code) to make it consistent.
@alixinne
Copy link
Author

This is actually not stale.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant