glab-mr
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external GitLab resources such as issue titles and merge request notes to automate workflows.
- Ingestion points: The
scripts/create-mr-from-issue.shscript fetches issue titles via theglab issue viewcommand. - Boundary markers: The script includes explicit developer warnings regarding untrusted content and uses strict character filtering for branch names.
- Capability inventory: The skill utilizes
gitfor local repository operations andglabfor API-driven actions like commenting, approving, and merging. - Sanitization: Scripts employ robust character sanitization for branch naming and include a specialized
sanitize_terminalfunction in the Python helper to strip terminal control characters and redact potential credentials from error logs. - [COMMAND_EXECUTION]: The skill uses shell and Python scripts to automate command-line interface interactions.
scripts/mr-review-workflow.shexecutes test commands; however, it implements a strictALLOWED_COMMANDSwhitelist to ensure only approved test runners (e.g.,npm test,pytest) are executed.scripts/post-inline-comment.pyinvokes theglabbinary using list-based arguments withsubprocess.run, which prevents shell injection vulnerabilities.- [DYNAMIC_EXECUTION]: The documentation and scripts utilize local script generation to facilitate complex API interactions.
SKILL.mdprovides examples of using Python heredocs to construct valid JSON payloads for the GitLab API.scripts/post-inline-comment.pydynamically calculates diff anchors and line codes to post precisely targeted inline comments, which is a core function of the skill.
Audit Metadata