Skip to content

compiled agentic workflows require modification when in a enterprise cloud environment #16312

Description

@JoshGreenslade

Per #16220

I'm trying to use this in a github enterprise cloud environment - I'm finding there's some manual modification I'm having to make within the generated lockfiles, as it seems by default most of the tooling assumes the base api endpoints will be located somewhere like https://github.com/ghapi/orgs/MyOrg/, whereas in our case it looks more like https://MyOrg.ghe.com/api/v3.

In particular, this seems to affect the github MCP server, and both "Execute GitHub Copilot CLI" steps.

the changes I had to make were:

  • Allowed domains must include MYORG.ghe.com,api.MYORG.ghe.com on the excecute github cli step and the ingest output step
  • Env variables within the execute GitHub cli step must include:
    GITHUB_SERVER_URL: https://MYORG.ghe.com
    GITHUB_API_URL: https://MYORG.ghe.com/api/v3
    GITHUB_ENTERPRISE_HOST: MYORG.ghe.com
    GITHUB_HOST: MYORG.ghe.com
    GH_HOST: MYORG.ghe.com
    Though I suspect we probably only needed GITHUB_HOST
  • The MCP server needs to have the following environment variable added "GITHUB_HOST": "https://MYORG.ghe.com"

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions