git-branch-protect
Pass
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes powerful CLI tools including
gh,glab, andgitto modify branch protection settings and rewrite repository history via force-push operations. These are high-risk commands intended for administrative tasks. - [INDIRECT_PROMPT_INJECTION]: The skill has a vulnerability surface for indirect prompt injection as it processes untrusted data from remote repository APIs. Ingestion points: API responses from
gh api graphqlandglab apicontaining branch names and protection rule details. Boundary markers: Mandatory explicit user confirmation is required for all write operations; instructions state that 'Workflow auto-advance is not acceptance'. Capability inventory: Capability to create, update, and delete protection rules, and executegit push --force-with-lease(documented inreferences/github.mdandreferences/gitlab.md). Sanitization: The skill explicitly requires URL-encoding for branch names in GitLab API calls to prevent path traversal or command issues.
Audit Metadata