Skip to content

Set GH_HOST to support GHEC#4

Open
jkbschmid wants to merge 1 commit into
actions:mainfrom
jkbschmid:jkbschmid-support-ghec
Open

Set GH_HOST to support GHEC#4
jkbschmid wants to merge 1 commit into
actions:mainfrom
jkbschmid:jkbschmid-support-ghec

Conversation

@jkbschmid
Copy link
Copy Markdown
Collaborator

..otherwise gh CLI will target the wrong domain.

..otherwise gh CLI will target the wrong domain
Copilot AI review requested due to automatic review settings May 12, 2026 13:00
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the composite action’s runtime environment so gh CLI targets the correct GitHub host derived from GITHUB_SERVER_URL, improving compatibility when the action is run against non-default GitHub domains.

Changes:

  • Export GH_HOST based on GITHUB_SERVER_URL before invoking gh commands.
  • Add an inline comment documenting the intent of the host override.
Show a summary per file
File Description
action.yml Exports GH_HOST to align gh CLI host selection with the runner’s GitHub server URL.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread action.yml
Comment thread action.yml
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