Repository navigation
Conversation
Copy-and-rename template that lets an acq sandbox authenticate git and gh against a GitHub Enterprise Server host: egress entry, SSH-to-HTTPS rewrites, a credential helper reading GH_ENTERPRISE_TOKEN at run time, and GH_HOST. The token stays on the host (acq secret set --host --env). Co-authored-by: OpenCode Agent <user@gsa.gov>
Co-authored-by: OpenCode Agent <user@gsa.gov>
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New copy-and-rename template
github-enterprise-kit(not inkits.yaml, per ADR 0005). It letsgitandghin anacqsandbox authenticate to a GitHub Enterprise Server host.acq's GitHub support coversgithub.comonly (GSA-TTS/agentic-coding-quickstart#698), so a custom host gets no token prompt and push/pull fail. The kit supplies the pieces a kit can; the token stays on the host.Design notes:
insteadOfkey (--replace-all, then--add). Thessh://form ends in/so it cannot rewrite a look-alike host or a URL with a port./api/v3, and/api/uploadsthere; subdomain-isolation hosts are only needed for features like release assets.Evidence
After (scratch
HOME,scripts/verifysection 4; run twice, output after both):scripts/verifyoffline: 15 passed, 0 failed, 1 skipped (live section). Mutated copies fail on a token-looking value, a host mismatch, and a missing--addline.validate-kits.py --strict: 10 kits + 3 templates valid.acq kit validate: OK. markdownlint,make validate, pytest (884) pass.Not verified (needs a real GHES host, token, and sandbox)
git ls-remote/gh api useragainst GHES on either backend (scripts/verifyruns them withGHE_VERIFY=1 GHE_HOST=...; it prints SKIP otherwise).github.comonly (quickstart ADR 0011).Merge Danger
Door: two-way. Additive docs and a template; revert the commit to undo.
Blast Radius: negligible.
acqnever applies the template, it is not in the registry, and no existing kit or script changes. Copiers who skip the REPLACE steps get a harmless reserved-domain egress entry.Eligibility & Accountability
@GSA-TTS/agentic-coding-teamcode-owner approval; eligibility is attested here, not authenticated).AI Assistance Disclosure
scripts/verify; a second AI sub-agent reviewed the diff.Type of Change
integrations/)Testing
make validatelocally (all checks pass)make testequivalent (pytest scripts/tests: 884 passed)Safety Checklist
ghe.example.org/ghe.corp.example)Related Issues
Relates to GSA-TTS/agentic-coding-quickstart#698 (the kit is a workaround; fixing
acqitself is separate work).