gh-repo-mirror
Pass
Audited by Gen Agent Trust Hub on Aug 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill relies on a Zsh script
mirror-repo.zshto automate repository management via the GitHub CLI (gh). It performs administrative tasks such as creating repositories, patching general settings, configuring security flags (secret scanning, AI detection), and setting up branch protection rules. These operations are transparently documented and match the stated purpose of the skill.- [EXTERNAL_DOWNLOADS]: Supports mirroring documentation content from external sources. Specifically, the--from-repoflag allows the script to clone a user-specified repository viagit cloneto extract and port GitHub Pages content into the new repository.- [CREDENTIALS_UNSAFE]: The skill manages DNS records by interacting with the Cloudflare API. It correctly references theCLOUDFLARE_API_TOKENenvironment variable for authentication, which is a secure and standard way to handle API secrets without hardcoding them.- [INDIRECT_PROMPT_INJECTION]: The skill ingests repository metadata and settings from existing GitHub repositories and interpolates these values into generated files (README.md, site.js) usingsed. While this constitutes an attack surface for untrusted metadata, the resulting data is used for static site generation rather than executable logic. - Ingestion points: Data retrieved from
gh apiresponses and user-supplied flags like--descriptionand--hero-eyebrow. - Boundary markers: Not present during the
sed-based interpolation process. - Capability inventory: Broad repository write permissions via the
ghCLI andgitpush capabilities. - Sanitization: Basic string interpolation is performed, but no formal sanitization or validation of the ingested repository metadata is implemented.
Audit Metadata