Skip to content

Commit 594647b

Browse files
CopilotMossaka
andcommitted
docs: address review feedback on GHEC/GHES domain listing readability
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/c2c587a8-e323-46c8-86c5-aad911eb8a46 Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
1 parent dbf81d4 commit 594647b

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

docs-site/src/content/docs/reference/cli-reference.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,18 @@ When `GITHUB_SERVER_URL` points to a `*.ghe.com` tenant (set automatically by Gi
841841
| `copilot-api.<tenant>.ghe.com` | Copilot inference |
842842
| `copilot-telemetry-service.<tenant>.ghe.com` | Copilot telemetry |
843843

844-
Domains from `GITHUB_API_URL` (e.g., `https://api.<tenant>.ghe.com`) are also detected.
844+
Domains from `GITHUB_API_URL` are also detected — if `GITHUB_API_URL` points to a `*.ghe.com` hostname (e.g., `https://api.myorg.ghe.com`), that hostname is added to the allowlist as well. This ensures API access works even if only `GITHUB_API_URL` is set.
845845

846846
```bash
847847
# These environment variables are set automatically by GitHub Agentic Workflows
848848
# GITHUB_SERVER_URL=https://myorg.ghe.com
849849
# GITHUB_API_URL=https://api.myorg.ghe.com
850850
851-
# AWF auto-adds: myorg.ghe.com, api.myorg.ghe.com,
852-
# copilot-api.myorg.ghe.com, copilot-telemetry-service.myorg.ghe.com
851+
# AWF auto-adds:
852+
# - myorg.ghe.com
853+
# - api.myorg.ghe.com
854+
# - copilot-api.myorg.ghe.com
855+
# - copilot-telemetry-service.myorg.ghe.com
853856
sudo awf --allow-domains github.com -- copilot-agent
854857
```
855858

@@ -873,9 +876,12 @@ When `ENGINE_API_TARGET` is set (indicating a GHES environment), AWF auto-adds:
873876
# Set by GitHub Agentic Workflows on GHES
874877
# ENGINE_API_TARGET=https://api.github.mycompany.com
875878
876-
# AWF auto-adds: github.mycompany.com, api.github.mycompany.com,
877-
# api.githubcopilot.com, api.enterprise.githubcopilot.com,
878-
# telemetry.enterprise.githubcopilot.com
879+
# AWF auto-adds:
880+
# - github.mycompany.com
881+
# - api.github.mycompany.com
882+
# - api.githubcopilot.com
883+
# - api.enterprise.githubcopilot.com
884+
# - telemetry.enterprise.githubcopilot.com
879885
sudo awf --allow-domains github.com -- copilot-agent
880886
```
881887

0 commit comments

Comments
 (0)