codex-merge-pr
Pass
Audited by Gen Agent Trust Hub on Oct 11, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill relies on several local shell scripts (
preflight.sh,squash-merge.sh, etc.) that executegitandgh(GitHub CLI) commands to interact with the repository and GitHub API. These scripts also invokepython3for JSON processing andmisefor running local linting tasks. - [INDIRECT_PROMPT_INJECTION]: The skill has a significant attack surface for indirect prompt injection as it ingests untrusted data from GitHub pull requests, including descriptions and commit messages.
- Ingestion points:
scripts/preflight.shandscripts/squash-message.shusegh pr viewto fetch the PR body and commit history. - Boundary markers: The instructions provide guidelines to the agent on how to interpret these fields (e.g., distinguishing Markdown for reviewers from plain text for the git log), but no formal delimiters are used when interpolating this data into the agent's context.
- Capability inventory: The skill possesses high-privilege capabilities including merging pull requests (
gh pr merge) and deleting local/remote branches (git branch -D,git push origin --delete). - Sanitization: The scripts use
jqandpython3to parse JSON metadata from GitHub, providing some protection against malformed data, but they do not sanitize the natural language content for potential instructions. - [DYNAMIC_CONTEXT_INJECTION]: The
SKILL.mdfile uses the platform-specific!command`` syntax to executescripts/preflight.sh. This is used legitimately to provide the agent with immediate context regarding the target pull request's status.
Audit Metadata