Skip to content

Commit cd666e7

Browse files
CopilotMossaka
andauthored
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 12e0b8f commit cd666e7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

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

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

457-
Domains from `GITHUB_API_URL` (e.g., `https://api.<tenant>.ghe.com`) are also detected.
457+
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.
458458

459459
```bash
460460
# These environment variables are set automatically by GitHub Agentic Workflows
461461
# GITHUB_SERVER_URL=https://myorg.ghe.com
462462
# GITHUB_API_URL=https://api.myorg.ghe.com
463463

464-
# AWF auto-adds: myorg.ghe.com, api.myorg.ghe.com,
465-
# copilot-api.myorg.ghe.com, copilot-telemetry-service.myorg.ghe.com
464+
# AWF auto-adds:
465+
# - myorg.ghe.com
466+
# - api.myorg.ghe.com
467+
# - copilot-api.myorg.ghe.com
468+
# - copilot-telemetry-service.myorg.ghe.com
466469
sudo awf --allow-domains github.com -- copilot-agent
467470
```
468471

@@ -486,9 +489,12 @@ When `ENGINE_API_TARGET` is set (indicating a GHES environment), AWF auto-adds:
486489
# Set by GitHub Agentic Workflows on GHES
487490
# ENGINE_API_TARGET=https://api.github.mycompany.com
488491

489-
# AWF auto-adds: github.mycompany.com, api.github.mycompany.com,
490-
# api.githubcopilot.com, api.enterprise.githubcopilot.com,
491-
# telemetry.enterprise.githubcopilot.com
492+
# AWF auto-adds:
493+
# - github.mycompany.com
494+
# - api.github.mycompany.com
495+
# - api.githubcopilot.com
496+
# - api.enterprise.githubcopilot.com
497+
# - telemetry.enterprise.githubcopilot.com
492498
sudo awf --allow-domains github.com -- copilot-agent
493499
```
494500

0 commit comments

Comments
 (0)