From the Inside Claude Code: The Claude Code Ecosystem architecture map

The gh.sh wrapper is the safety contract both Claude jobs rest on

risk · medium · verified

Triage and dedupe prompts, the egress allow list and the workflow comments all assume scripts/gh.sh only exposes read subcommands and four flags. It is a 100-line shell script with no tests in the repo; one new allowed subcommand or flag silently widens what an agent fed untrusted issue text can do in both jobs.

Impact: A small, innocent-looking edit to the wrapper changes the blast radius of every Claude run on issues.

Recommendation (small effort): Add a test that asserts the wrapper rejects edit, comment, close, api and repo: queries, and route changes to scripts/gh.sh and the two write scripts through CODEOWNERS review.

The trail

  1. GitHub Actions Workflows
  2. Repo Slash Commands
  3. Issue Automation Scripts
Open on the map

More from this board

© 2026 Syntaxia App Platform Ltd.

Syntaxia App Platform Ltd. Registered in England and Wales, company no. 15272701 Registered office: 3rd Floor, 86–90 Paul Street, London EC2A 4NE, United Kingdom contact@provenmap.com