Repository navigation
Description
Overview
The Network Configuration Guide says custom domains are rejected in strict mode and that strict: false is required to use them. The Network Permissions reference on the same published site says custom domains produce no warnings under strict mode. The compiler at checkout ba221813ca9fde1075bdc63c12ef9b978955ff7d agrees with the reference. An operator who follows the guide to add an internal host turns off strict-mode validation when it is not needed.
User task and impact
- Question: How do I allow an internal or custom HTTPS hostname in
network.allowedwhile keeping strict mode on? - Platform: Compile-time behavior that does not depend on GHEC, GHES, or runner topology. The persona is a Linux self-hosted runner with restricted egress. No GHES release was checked.
- Expected answer: Custom hostnames are allowed under default strict mode. Only the wildcard
*is rejected. - Actual obstacle: The guide documents a rejection error and tells the reader to set
strict: false. - Operational consequence: Operators who follow the guide turn off the enhanced security validation that strict mode applies, just to add one host. The frontmatter reference says
strict: falseworkflows cannot run on public repositories. Teams that see the quoted error also go looking for a validator that no longer exists, instead of editingnetwork.allowed.
Reproduction and evidence
Verified by walking the published site and reading the checked-out source. The Go unit tests did not run: the sandbox Go toolchain download failed on TLS validation, and that was not worked around. Compile-time behavior therefore rests on source reading and existing test assertions.
Reproduction steps and supporting evidence
- Home (
https://github.github.com/gh-aw/), site searchcorporate proxy certificate: no results. - Home, site search
network firewall domains: 37 results. The first hit is Network Permissions (/gh-aw/reference/network/). - Network Permissions, tip link to the Network Configuration Guide (
/gh-aw/guides/network-configuration/, opened by URL). - Guide, Strict Mode and Ecosystem Identifiers (
#strict-mode-and-ecosystem-identifiers): a "Rejected in strict mode" example forpypi.org, and an Error Messages block quotingerror: strict mode: network domains must be from known ecosystems ... Custom domains are not allowed for security. - Guide, Using Custom Domains (
#using-custom-domains):strict: false # Required for custom domains, with"api.example.com" # Custom domain (only allowed with strict: false). - Network Permissions, Strict Mode Validation (
/gh-aw/reference/network/#strict-mode-validation) on the same site: "Custom domains outside known ecosystems produce no warnings", with astrict: trueexample that lists"api.example.com"and is marked "No warnings".
Source comparison at ba221813ca9fde1075bdc63c12ef9b978955ff7d:
| Claim | Published page | Source |
|---|---|---|
Custom domains need strict: false |
Guide, docs/src/content/docs/guides/network-configuration.md:132-146 |
pkg/workflow/strict_mode_permissions_validation.go:163-166 allows truly custom domains under strict mode |
Ecosystem-member domain rejected (pypi.org) |
Guide, lines 98-105 | Same file, lines 170-181: informational "recommend using ecosystem identifiers" message only |
| Strict network validation rejects custom domains | Guide, lines 114-130 | pkg/workflow/strict_mode_network_validation.go:33-40 rejects only the wildcard * |
| Quoted error text | Guide, lines 114-130 | Not present in pkg/ at this checkout |
| Reference behavior | docs/src/content/docs/reference/network.md:190-192 |
Matches source |
| Unit tests | n/a | pkg/workflow/strict_mode_llm_gateway_test.go:82-99 expects no error and zero warnings for pypi.org and registry.npmjs.org in strict mode |
Strict default and strict: false limit |
docs/src/content/docs/reference/frontmatter.md:896-906 |
Default true; strict: false workflows cannot run on public repositories |
Source versus deployment: the deployed guide shows the same headings, examples, and error blocks as guides/network-configuration.md lines 96-146. The deployed reference shows the same strict-mode text as reference/network.md lines 190-216. The site showed no version or deployment SHA, so this comparison rests on matching content.
Related history: #15425 (closed as completed, 2026-02-13) reports an earlier strict-mode guard that rejected custom network domains during CI. The guide quoted error resembles that earlier message. The current source contains neither message. #15425 is context only, not a prior docs fix.
Audit run: §45356734885
Proposed improvement and acceptance criteria
Rewrite the guide strict-mode section to match the current validator:
- Ecosystem-member domains produce an informational recommendation, not an error.
- Custom hostnames are allowed under default strict mode. Only
*is rejected. - Remove the quoted error blocks and the
strict: falserequirement. Keep the security note that custom domains bypass ecosystem validation and should be reviewed. - Link the section to
/gh-aw/reference/network/#strict-mode-validationso both pages say the same thing.
Acceptance criteria:
- The guide no longer says custom domains require
strict: falseor are rejected in strict mode. - The guide no longer quotes the "network domains must be from known ecosystems" error text.
- The guide and the reference agree: ecosystem-member domains get an informational recommendation, and custom domains are allowed.
- Repeating the path (home, search
custom domain strict mode, Network Configuration Guide) gives the answer: add the host tonetwork.allowedand keep strict mode on. - After deployment, the published guide matches the corrected source.
Dedup and limits
- Three read-only queries of open and closed issues in
github/gh-aw: page slug with task keywords, the[enterprise-docs]prefix with thecookielabel, and broader strict-mode and custom-domain terms. No open or closed docs issue matched this guide text. [CI Failure Doctor] Strict-mode guard rejects custom network domains in integration tests #15425 is related context only. - Not verified:
gh aw compileand the Go unit tests did not run in this sandbox.
References: §45356734885
Generated by Enterprise Docs Audit · pi · routed: haiku55 xhigh · ~77 AIC · ⌖ ~2 AIC · ⊞ 5.8K · history
- expires on Nov 26, 2026, 12:45 AM UTC-08:00
Activity
github-actions commentedon Nov 24, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪